Original Message
From: mouss mo...@ml.netoyen.net
To: postfix-users@postfix.org
Sent: Sat, Jul 23, 2011, 5:55 AM
Subject: Re: dovecot lmtp
Le 20/07/2011 00:03, Kendall Shaw a écrit :
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.
that's it. mail sent to localhost goes to 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?
when you send a letter, it goes to where the address you write on the
envelope. you don't expect the mailman to open the envelope to see if
you wrote this letter is for ...?
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@localhostjoe+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?
your /usr/pkg indicates a Netbsd system. yet, your previous log shows a
localhost.localdomain which is a linux humphhumph. I'm lost...
retry with
append_dot_mydomain = no
or change your virtual thing to
joe@localhost.localdomain joe+localh...@example.com