Since I did not hear from anyone, I am sending this email again in hopes
of getting a reply, link to some site I have not found or suggestion
of different maillist to try.
I've spent some time searching and reading but have not
convinced myself that I really understand so I am sending my
question to this maillist.
I have recently converted from sendmail to postfix on a CentOS6
mailserver. Everything seems to be going okay except for how postfix
deals with the .forward file in the users home directory. I've read
that sendmail-like .forward files should work fine with postfix but what
I have found is that they do not.
Sendmail allows for just "username" & "\username" as well as
username@server and username@fqdn for the local user to get a
copy of the mail and it only calls local delivery.
Postfix has a much different behavior. Both "username" and "\username"
get forwarded off and then sent back (because it should have been a local
delivery) to then create a mail loop error and no mail is delivered
locally. It does
not see/recognize in the aliases file that the alias for that "username" is
directed to itself; ex: username: usern...@itself.domain.com
Can someone please explain this behavior to me?
I do not have a complicated setup. We run NIS and I am using the
local-host-names file for machines this server should keep mail for.
This file
is the same as the sendmail version. This servers name is in that file
although
taking it out makes no difference.
There is a transport file to tell postfix where to send mail that is NOT
intended
for itself. The servers name is NOT in the transport file. I have no
virtual domains nor virtual aliases. A full NIS aliases file is
contained within
/etc/postfix; newaliases_path = /usr/bin/newaliases.postfix
alias_maps = hash:/etc/aliases, nis:mail.aliases
alias_database = hash:/etc/aliases
(entry in aliases is; username: username.server.domain.com
mydestination = $myhostname, localhost.$mydomain, localhost,
/etc/postfix/local-host-names
It seems to me that "username" alone in the .forward file should
generate an alias lookup
and the server should see that it is the final destination and trigger a
local delivery.
Why does this not happen?
This is an issue for us because program used to generate vacation/away
messages puts
either "\username" or "username" in to the users .forward file so
initially people were not
receiving their email if they had such a .forward.
Aloha, Sharon Stahl
--
*=============================================================*
| UH/SOEST-Research Computer Fac vox: (808) 956-2616 |
| 1680 East West Rd- POST820 email: st...@soest.hawaii.edu |
| Honolulu, Hi 96822 fax: (808) 956-9256 |
*=============================================================*