This is a discussion on Re: Mail to root going to (user:)postfix instead of specified user within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Antony wrote: > Hi, > > I have installed RH9 with postfix-2.0.13-3.rh9. Postfix is happily &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Antony wrote:
> Hi, > > I have installed RH9 with postfix-2.0.13-3.rh9. Postfix is happily > routing mail to individual users when collected using fetchmail (with > procmail and spamassassin), however mail to root is going to > /var/spool/mail/postfix rather than the user I specified in /etc/aliases > (antony). > > In /etc/aliases I have specified "root: antony". There were no entries > in here for a user called postfix, so I guess Postfix doesn't know what > to do with mail addressed to root and it has to go somewhere. I've > tried adding "postfix: antony" to the file but that didn't help. Local > mail to other users is routing fine. After modifying /etc/aliases I > have ran "newaliases" and reloaded Postfix. > > I have RH9 running on another machine with Postfix and mail to root is > being sent to the correct user, however I cannot see what is different > in the configs which would cause this one not to route the mail to the > correct. Apart from this small inconvenience Postfix is working fine as > far I am know. > > I didn't get too much joy with Google or the Postfix man/FAQs/website > :( > > Any suggestions welcome, I pretty new to this but will fiddle with it > until it works (it's only a test machine) as I'm bound to learn > something :) > > HAND Looks like you made the required changes and forgot to run newaliases Tom -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 80,000 Newsgroups - 16 Different Servers! =----- |
|
|||
|
On Mon, 14 Jul 2003 at 18:57:36, Thomas Spuhler <spuhler@dakotacom.net>
writes >Antony wrote: > >> Hi, >> >> I have installed RH9 with postfix-2.0.13-3.rh9. Postfix is happily >> routing mail to individual users when collected using fetchmail (with >> procmail and spamassassin), however mail to root is going to >> /var/spool/mail/postfix rather than the user I specified in /etc/aliases >> (antony). >> >> In /etc/aliases I have specified "root: antony". There were no entries >> in here for a user called postfix, so I guess Postfix doesn't know what >> to do with mail addressed to root and it has to go somewhere. I've >> tried adding "postfix: antony" to the file but that didn't help. Local >> mail to other users is routing fine. After modifying /etc/aliases I >> have ran "newaliases" and reloaded Postfix. >> >> I have RH9 running on another machine with Postfix and mail to root is >> being sent to the correct user, however I cannot see what is different >> in the configs which would cause this one not to route the mail to the >> correct. Apart from this small inconvenience Postfix is working fine as >> far I am know. >> >> I didn't get too much joy with Google or the Postfix man/FAQs/website >> :( >> >> Any suggestions welcome, I pretty new to this but will fiddle with it >> until it works (it's only a test machine) as I'm bound to learn >> something :) >> >> HAND > >Looks like you made the required changes and forgot to run newaliases >Tom > I did run newaliases (see above). I have just ran newaliases and reloaded postfix to make sure and tested - still the same problem. I might remove the rpm and compile it from the source code just for the sake of it. -- Antony |
|
|||
|
Il giorno Tue, 15 Jul 2003, Ant cosė ha scritto:
|On Mon, 14 Jul 2003 at 18:57:36, Thomas Spuhler <spuhler@dakotacom.net> |writes |>Looks like you made the required changes and forgot to run newaliases |>Tom |> |I did run newaliases (see above). I have just ran newaliases and |reloaded postfix to make sure and tested - still the same problem. I |might remove the rpm and compile it from the source code just for the |sake of it. | Make sure you specified the right file_format:file in main.cf. To check this, please do the following: aselli@aselli ~$ grep ^alias_maps /etc/postfix/main.cf alias_maps = hash:/etc/aliases aselli@aselli ~$ ls /etc/aliases* /etc/aliases /etc/aliases.db Sandro -- Bellum se ipsum alet La guerra nutre se stessa Livio, Ab urbe condita, XXXIV,9 |
|
|||
|
On Tue, 15 Jul 2003 at 11:38:34, Alessandro Selli
<adoro.lo.spam@libero.it> writes >Il giorno Tue, 15 Jul 2003, Ant cosė ha scritto: > >|On Mon, 14 Jul 2003 at 18:57:36, Thomas Spuhler <spuhler@dakotacom.net> >|writes >|>Looks like you made the required changes and forgot to run newaliases >|>Tom >|> >|I did run newaliases (see above). I have just ran newaliases and >|reloaded postfix to make sure and tested - still the same problem. I >|might remove the rpm and compile it from the source code just for the >|sake of it. >| > > Make sure you specified the right file_format:file in main.cf. To check >this, please do the following: > >aselli@aselli ~$ grep ^alias_maps /etc/postfix/main.cf >alias_maps = hash:/etc/aliases > >aselli@aselli ~$ ls /etc/aliases* >/etc/aliases /etc/aliases.db > > > > Sandro > > Thanks Sandro, I've found it now thanks to your help. [root@server root]# grep ^alias_maps /etc/postfix/main.cf alias_maps = hash:/etc/postfix/aliases I was changing /etc/aliases rather than this one. Changed /etc/postfix/aliases, ran newaliases and reloaded Postfix and it's now working fine :) -- Antony |
![]() |
| Thread Tools | |
| Display Modes | |
|
|