[ILUG] Postfix question.
Gary Coady
gary at netsoc.tcd.ie
Mon Oct 28 23:51:07 GMT 2002
On Mon, Oct 28, 2002 at 08:12:17PM +0000, Conor Daly wrote:
> I already have such a regexp in recipient_canonical_maps. It's used to
> deliver external mails to the local users. In any case, it doesn't wrok
> for local mail since that goes out to the relay_host first. AFAICT,
> recipient_canonical_maps stuff gets applied only to stuff incoming for
> local delivery or should I say only to stuff that the local postfix is
> actually _delivering_ but not to stuff that postfix is passing on to a
> relay_host. Would that be right?
I don't think so... it seems that all mail, whether destined for local
or remote users, ends up in the incoming queue.
http://www.postfix.org/receiving.html
The stage just before entering the incoming queue is to run the
cleanup daemon, which runs trivial-rewrite, rewrites envelopes and
headers according to canonical maps, and possibly checks the virtual
tables.
The next stage is to deliver mail from the incoming queue - at this
time the difference between local and remote mail appears - but at this
stage, header/envelope rewriting has already been completed.
http://www.postfix.org/delivering.html
So... I suspect you have another problem with your
recipient_canonical_maps, perhaps either it doesn't match what you think
it matches, or it's rewriting to an address which for some reason is
still seen as remote.
> This looks more like the thing. The only other thing I need there is the
> option to queue the mail for later delivery (this is on a dialup and will
> be called with a "sendmail -q" when the internet link is up).
Looks like
defer_transports = localhost:10025
might work?
Gary.
More information about the ILUG
mailing list