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 email@example.com, 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 firstname.lastname@example.org to
> email@example.com, but didn't get it to do what I wanted. (With it in
> place 'mailq' still reports firstname.lastname@example.org 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 <email@example.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-----END PGP SIGNATURE-----