This is a discussion on Postfix - Help on configuration within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi everybody, I want configure Postfix on my server. I already installed, but if I want test it by sending ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi everybody,
I want configure Postfix on my server. I already installed, but if I want test it by sending a mail to myself. It not working. I can see my email into mail queue. It's into spool/postfix/active directory I send all information that I got, may be somebody can help me. I wasted 2 weeks on that... I use Mandrake 9.1 Thanks! Please send me your answer at jlvill@sympatico.ca ======== [root@dummysites jlvill]# mail jlvill Subject: Test this is a test .. Cc: ========= [root@dummysites jlvill]# mail No mail for jlvill ========= [root@dummysites jlvill]# mailq -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient----- 6CCE01C98E* 1328 Sat Aug 16 04:10:05 root@local.dummysites.com jlvill@local.dummysites.com ========= This is my main.cf [root@dummysites jlvill]# postconf -n alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix debug_peer_level = 2 delay_warning_time = 4 inet_interfaces = all mail_owner = postfix mail_spool_directory = /var/spool/mail mailbox_command = /usr/bin/procmail -Y -a $DOMAIN mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain myhostname = local.dummysites.com newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.0.6/README_FILES sample_directory = /usr/share/doc/postfix-2.0.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux) unknown_local_recipient_reject_code = 450 ======== This is the spool/postfix/active/6/6CCE01C98E file (my email in active directory) C/ 1328 179 1T 1061021405Amessage_origin=localSroot@local.dummy sites.comOjlvillRjlvill@local.dummysites.comW 1061035805M 1507N9Received: by local.dummysites.com (Postfix, from userid 0)N5 id 6CCE01C98E; Sat, 16 Aug 2003 04:10:05 -0400 (EDT)NTo: jlvill@local.dummysites.comNQSubject: [msec] *** Diff Check on dummysites.com, Sat Aug 16 04:10:04 EDT 2003 ***N;Message-Id: <20030816081005.6CCE01C98E@local.dummysites.com>N+ Date: Sat, 16 Aug 2003 04:10:05 -0400 (EDT)N%From: root@local.dummysites.com (root)NNNSecurity Warning: There are modifications for port listening on your machine :Nj - Opened ports : tcp 0 0 *:sunrpc *:* LISTEN 16334/Nj - Opened ports : tcp 0 0 *:smtp *:* LISTEN 19935/Nn - Opened ports : udp 0 0 *:who *:* 5510/rwhodNj - Opened ports : udp 0 0 *:sunrpc *:* 16334/Nj - Closed ports : tcp 0 0 *:sunrpc *:* LISTEN 20102/Nh - Closed ports : tcp 0 0 localhost.localdom:smtp *:* LISTEN 931/Nn - Closed ports : udp 0 0 *:who *:* 3535/rwhodNj - Closed ports : udp 0 0 *:sunrpc *:* 20102/Xreroot@local.dummysites.comE ============ Warning file Aug 16 01:19:31 dummysites postfix/postqueue[17214]: warning: Mail system is down -- accessing queue directly Aug 16 01:23:04 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 8184 exit status 1 Aug 16 01:23:04 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:24:05 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 18644 exit status 1 Aug 16 01:24:05 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:25:06 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 5171 exit status 1 Aug 16 01:25:06 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:26:07 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 3741 exit status 1 Aug 16 01:26:07 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:27:08 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 20323 exit status 1 Aug 16 01:27:08 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:28:09 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 12148 exit status 1 Aug 16 01:28:09 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:29:10 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 7459 exit status 1 Aug 16 01:29:10 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:30:11 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 20393 exit status 1 Aug 16 01:30:11 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:31:12 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 16195 exit status 1 Aug 16 01:31:12 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:32:13 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 29751 exit status 1 Aug 16 01:32:13 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:33:14 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 22072 exit status 1 Aug 16 01:33:14 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:34:15 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 10488 exit status 1 Aug 16 01:34:15 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:35:16 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 386 exit status 1 Aug 16 01:35:16 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:36:17 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 31087 exit status 1 Aug 16 01:36:17 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:37:18 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 10487 exit status 1 Aug 16 01:37:18 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:38:19 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 11081 exit status 1 Aug 16 01:38:19 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling Aug 16 01:39:20 dummysites postfix/master[19935]: warning: process /usr/lib/postfix/local pid 9492 exit status 1 Aug 16 01:39:20 dummysites postfix/master[19935]: warning: /usr/lib/postfix/local: bad command startup -- throttling ============ Error file Aug 16 01:24:04 dummysites postfix/local[18644]: fatal: open database /etc/postfix/aliases.db: No such file or directory Aug 16 01:25:05 dummysites postfix/local[5171]: fatal: open database /etc/postfix/aliases.db: No such file or directory Aug 16 01:26:06 dummysites postfix/local[3741]: fatal: open database /etc/postfix/aliases.db: No such file or directory Aug 16 01:27:07 dummysites postfix/local[20323]: fatal: open database /etc/postfix/aliases.db: No such file or directory ============ Info file Aug 16 04:10:05 dummysites postfix/pickup[2599]: 6CCE01C98E: uid=0 from=<root> Aug 16 04:10:05 dummysites postfix/cleanup[17104]: 6CCE01C98E: message-id=<20030816081005.6CCE01C98E@local.dummysites.com > Aug 16 04:10:06 dummysites postfix/nqmgr[7010]: 6CCE01C98E: from=<root@local.dummysites.com>, size=1328, nrcpt=1 (queue active) Aug 16 06:23:03 dummysites postfix/nqmgr[30557]: 6CCE01C98E: from=<root@local.dummysites.com>, size=1328, nrcpt=1 (queue active) Aug 16 11:28:02 dummysites postfix/nqmgr[5600]: 6CCE01C98E: from=<root@local.dummysites.com>, size=1328, nrcpt=1 (queue active) Aug 16 16:28:03 dummysites postfix/nqmgr[29759]: 6CCE01C98E: from=<root@local.dummysites.com>, size=1328, nrcpt=1 (queue active) Aug 16 21:33:02 dummysites postfix/nqmgr[31308]: 6CCE01C98E: from=<root@local.dummysites.com>, size=1328, nrcpt=1 (queue active) |
|
|||
|
On Sun, 17 Aug 2003 00:47:07 -0400, Jean-Louis Vill wrote:
> Hi everybody, > > I want configure Postfix on my server. I already installed, but if I > want test it by sending a mail to myself. It not working. Looking at your errors I would try using the MD software manager to uninstall postfix and install postfix because of the alias.db error and to have a clean starting point. Also allows you to make copies of the original files to compare against and allows you to see what changes you made to what file. Your call on the clean install suggestion.. Maybe you can use postmap to make aliases.db or maybe just a link problem. ls -al /etc/aliases lrwxrwxrwx 1 root root /etc/aliases -> /etc/alternatives/mta-etc_aliases ls -al /etc/alternatives/mta-etc_aliases lrwxrwxrwx 1 root root /etc/alternatives/mta-etc_aliases -> /etc/postfix/aliases To get mine to work I made just a few changes and added one line to main.cf and alias to send my email through my isp. Downside is messages to root are rerouted to bittwister in aliases. Then sender_canonical maps messages from bittwister to my isp email address and I see it when I check my isp email. Here is a difference listing of main.cf to show my changes diff legend: lines with > is the before change. line lines with < is the after change. line lines with numbers contain the line and character location of changes. diff -bBw main.cf main.cf_orig 68d67 < myhostname = wb.home 77d75 < mydomain = home 306c304 < relayhost = smtp.comcast.net --- > #relayhost = gateway.my.domain 348d345 < sender_canonical_maps = hash:/etc/postfix/sender_canonical --------------------------------------------- sender_canonical_maps is used to convert my LAN login to my ISP email name because some MTAs check with my relayhost to verify the Return-Path email account is valid. cat sender_canonical bittwister my_email_addy@comcast.net --------------------------------------------- diff -bBw aliases aliases_orig 80,81c80 < root: bittwister < --- > root: postfix If you change aliases you need to create the aliases.db with postmap Same with sender_canonical_maps After I change anything I do a postfix stop cp /dev/null /var/log/mail/errors cp /dev/null /var/log/mail/info cp /dev/null /var/log/mail/warnings cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf postfix start and check the /var/log/mail/* logs The cp /var/spool/postfix/etc/resolv.conf is because I am on dhcp from my isp and the spool copy needs to match the /etc copy. You might find some help in the debug file found with locate -i postfix | grep -i doc | grep -i debug You then cut/paste something like /usr/share/doc/postfix-2.0.6/README_FILES/DEBUG_README into your browser. |
|
|||
|
Hi Twister,
Tanks a lot! I will check that and I'll give you a feed back! Bit Twister wrote: > On Sun, 17 Aug 2003 00:47:07 -0400, Jean-Louis Vill wrote: > >>Hi everybody, >> >>I want configure Postfix on my server. I already installed, but if I >>want test it by sending a mail to myself. It not working. > > > Looking at your errors I would try using the MD software manager to > uninstall postfix and install postfix because of the alias.db error > and to have a clean starting point. > > Also allows you to make copies of the original files to compare > against and allows you to see what changes you made to what file. > Your call on the clean install suggestion.. > > Maybe you can use postmap to make aliases.db or maybe just a link problem. > > ls -al /etc/aliases > lrwxrwxrwx 1 root root /etc/aliases -> /etc/alternatives/mta-etc_aliases > > ls -al /etc/alternatives/mta-etc_aliases > lrwxrwxrwx 1 root root /etc/alternatives/mta-etc_aliases -> > /etc/postfix/aliases > > > To get mine to work I made just a few changes and added one line to > main.cf and alias to send my email through my isp. > > Downside is messages to root are rerouted to bittwister in aliases. > Then sender_canonical maps messages from bittwister to my isp > email address and I see it when I check my isp email. > > Here is a difference listing of main.cf to show my changes > diff legend: > lines with > is the before change. line > lines with < is the after change. line > lines with numbers contain the line and character location of changes. > > > > diff -bBw main.cf main.cf_orig > 68d67 > < myhostname = wb.home > 77d75 > < mydomain = home > 306c304 > < relayhost = smtp.comcast.net > --- > >>#relayhost = gateway.my.domain > > 348d345 > < sender_canonical_maps = hash:/etc/postfix/sender_canonical > > --------------------------------------------- > sender_canonical_maps is used to convert my LAN login to my ISP > email name because some MTAs check with my relayhost to verify > the Return-Path email account is valid. > > cat sender_canonical > bittwister my_email_addy@comcast.net > > --------------------------------------------- > diff -bBw aliases aliases_orig > 80,81c80 > < root: bittwister > < > --- > >>root: postfix > > > If you change aliases you need to create the aliases.db with postmap > Same with sender_canonical_maps > > After I change anything I do a > postfix stop > cp /dev/null /var/log/mail/errors > cp /dev/null /var/log/mail/info > cp /dev/null /var/log/mail/warnings > cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf > postfix start > > and check the /var/log/mail/* logs > > The cp /var/spool/postfix/etc/resolv.conf is because I am on dhcp > from my isp and the spool copy needs to match the /etc copy. > > You might find some help in the debug file found with > locate -i postfix | grep -i doc | grep -i debug > > You then cut/paste something like > /usr/share/doc/postfix-2.0.6/README_FILES/DEBUG_README > into your browser. > |
|
|||
|
just testing to see if my mail setup thing works all good...
"Bit Twister" <BitTwister@localhost.localdomain> wrote in message news:slrnbjva7g.ra0.BitTwister@wb.home... > On Sun, 17 Aug 2003 00:47:07 -0400, Jean-Louis Vill wrote: > > Hi everybody, > > > > I want configure Postfix on my server. I already installed, but if I > > want test it by sending a mail to myself. It not working. > > Looking at your errors I would try using the MD software manager to > uninstall postfix and install postfix because of the alias.db error > and to have a clean starting point. > > Also allows you to make copies of the original files to compare > against and allows you to see what changes you made to what file. > Your call on the clean install suggestion.. > > Maybe you can use postmap to make aliases.db or maybe just a link problem. > > ls -al /etc/aliases > lrwxrwxrwx 1 root root /etc/aliases -> /etc/alternatives/mta-etc_aliases > > ls -al /etc/alternatives/mta-etc_aliases > lrwxrwxrwx 1 root root /etc/alternatives/mta-etc_aliases -> > /etc/postfix/aliases > > > To get mine to work I made just a few changes and added one line to > main.cf and alias to send my email through my isp. > > Downside is messages to root are rerouted to bittwister in aliases. > Then sender_canonical maps messages from bittwister to my isp > email address and I see it when I check my isp email. > > Here is a difference listing of main.cf to show my changes > diff legend: > lines with > is the before change. line > lines with < is the after change. line > lines with numbers contain the line and character location of changes. > > > > diff -bBw main.cf main.cf_orig > 68d67 > < myhostname = wb.home > 77d75 > < mydomain = home > 306c304 > < relayhost = smtp.comcast.net > --- > > #relayhost = gateway.my.domain > 348d345 > < sender_canonical_maps = hash:/etc/postfix/sender_canonical > > --------------------------------------------- > sender_canonical_maps is used to convert my LAN login to my ISP > email name because some MTAs check with my relayhost to verify > the Return-Path email account is valid. > > cat sender_canonical > bittwister my_email_addy@comcast.net > > --------------------------------------------- > diff -bBw aliases aliases_orig > 80,81c80 > < root: bittwister > < > --- > > root: postfix > > If you change aliases you need to create the aliases.db with postmap > Same with sender_canonical_maps > > After I change anything I do a > postfix stop > cp /dev/null /var/log/mail/errors > cp /dev/null /var/log/mail/info > cp /dev/null /var/log/mail/warnings > cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf > postfix start > > and check the /var/log/mail/* logs > > The cp /var/spool/postfix/etc/resolv.conf is because I am on dhcp > from my isp and the spool copy needs to match the /etc copy. > > You might find some help in the debug file found with > locate -i postfix | grep -i doc | grep -i debug > > You then cut/paste something like > /usr/share/doc/postfix-2.0.6/README_FILES/DEBUG_README > into your browser. > |
|
|||
|
Tim Strong wrote:
> just testing to see if my mail setup thing works all good.. next time, use one of the over 400 *.test newsgroups .. -- /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\ \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" /// \\\ http://pages.sbcglobal.net/mtobler/mjt_linux_page.html /// There *__ is* intelligent life on Earth, but I leave for Florida on Monday. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|