Re: Postfix rewriting
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, Sep 13, 2006 at 01:53:55PM +0100, Magnus Therning wrote:
> I have the following working mail setup:
> 1. Local postfix deferring all SMTP mail which uses localhost:2300 as a
> relay. (DN local.net)
> 2. A remote postfix that is able to send emails. (DN remote.net)
> 3. A local cronjob that first sets up an SSH forwarding from
> localhost:2300 to remote:25 and calls "sendmail -q" to push push the
> locally queued email.
> Now for the actual question. My local user is called 'foo' my remote
> user is called 'bar'. I use the local /etc/mailname to rewrite outgoing
> addresses to firstname.lastname@example.org, without it I am not able to relay through
> the remote server. However, since the user 'foo' doesn't exist on the
> remote system the logs will report that an unknown user sent emails.
> How can I fix that locally?
> I tried using "smtp_generic_maps" to rewrite email@example.com to
> firstname.lastname@example.org, but didn't get it to do what I wanted. (With it in
> place 'mailq' still reports email@example.com as the sender.)
Well for that, you can use
that way, i rewrite my local user to the full email address (e.g not
just the user, but the whole address in one step).
i hope it helps
Albert Dengg <firstname.lastname@example.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-----END PGP SIGNATURE-----