Giganews Newsgroups

Re: Mail to root going to (user:)postfix instead of specified user

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 &...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-15-2003
Thomas Spuhler
 
Posts: n/a
Default Re: Mail to root going to (user:)postfix instead of specified user

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! =-----
Reply With Quote
  #2 (permalink)  
Old 07-15-2003
Ant
 
Posts: n/a
Default Re: Mail to root going to (user:)postfix instead of specified user

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
Reply With Quote
  #3 (permalink)  
Old 07-15-2003
Alessandro Selli
 
Posts: n/a
Default Re: Mail to root going to (user:)postfix instead of specified user

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
Reply With Quote
  #4 (permalink)  
Old 07-15-2003
Antony
 
Posts: n/a
Default Re: Mail to root going to (user:)postfix instead of specified user

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:10 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0