Hi there,
just a simple question about relaying a local mail with an alias instead
of the user name.
so it works to relay mail to the alias address via the relay
aliases file:
root: logs+foo@domain.tld
secrets file:
test account@domain.tld:secret_pass
smtpd.conf
table aliases file:/etc/mail/aliases
table secrets file:/etc/mail/secrets
listen on lo0
accept for local alias <aliases> deliver to mbox
accept for any relay via tls+auth://test@mail.domain.tld:587 auth <secrets>
But I get mails in my log account
From: root@machinename.domain.tld
To:root@machinename.domain.tld
but i would like to have a it with
From: root@machinename.domain.tld
To: logs+foo@domain.tld
to make my filtering easier in the mail account.
So is it possible to get smtpd to use the alias in the to: field by
default when sending a mail from a user account?
Regards
--
Markus Rosjat fon: +49 351 8107223 mail: rosjat@ghweb.de
G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden
http://www.ghweb.de
fon: +49 351 8107220 fax: +49 351 8107227
Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before
you print it, think about your responsibility and commitment to the
ENVIRONMENT
No comments:
Post a Comment