On 07/19/2011 01:32 PM, mouss wrote:
Le 19/07/2011 22:00, Kendall Shaw a écrit :

Your setup is ok, but your test is not...

you have defined virtual_transport to be dovecot, but this only applies
to virtual_mailbox_domains.

you didn't explicitely specify mydestination, so the default applies:
$ postconf -d mydestination
mydestination = $myhostname, localhost.$mydomain, localhost

if this applies to you, then localhost is a "local" domain.

this is good.

in your tests, you should not send mail to @localhost. keep this
reserved for addresses that need "local" functionality (execute some
script,... etc).

Okay, but I am not sending mail to @localhost. I send to ks...@kendallshaw.com. Fetchmail sends RCPT TO:<eekshaw@localhost>. There is the header To: ks...@kendallshaw.com in the message. Does postfix decide on the destination based on the To header or RCPT TO?

If it is the later, I guess this is a fetchmail question, and I'll ask somewhere else.

for mailbioxes @localhost that need to be delievered to a mailbox, use
virtual_aliases_maps:

joe@localhost   joe+localh...@kendallshaw.com


In case this is not a fetchmail problem, I tried:

creating /usr/pkg/etc/postfix/aliases:

kshaw@localhost ks...@kendallshaw.com

postmap /usr/pkg/etc/postfix/aliases

and added to main.cf:

virtual_alias_maps = hash:/usr/pkg/etc/postfix/aliases

and there is no change after postfix reload.

Does the alias happen before postfix picks a delivery process?

Thank you,

Kendall

Reply via email to