-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 PROTECTED], 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 PROTECTED] to
> [EMAIL PROTECTED], but didn't get it to do what I wanted.  (With it in
> place 'mailq' still reports [EMAIL PROTECTED] as the sender.)

Well for that, you can use 
sender_canonical_maps
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

yours
Albert

- -- 
Albert Dengg <[EMAIL PROTECTED]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFCBR1hrtSwvbWj0kRAraGAJ9/9PuX/jlYpGrIWNsKc1QpUhNNIwCfYLj0
vT9iFj//1s+HLfzsI+WuHsw=
=322C
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to