Hi!

Trying to set up opensmtpd as a simple single mta relaying all mail to a
smarthost. But ...

Config:
listen on localhost
table aliases db:/etc/aliases.db
table secrets db:/etc/smtpd.secrets.db
expire 4h
accept from local for any relay via smtps+auth://gm...@smtp.gmail.com:465
auth <secrets>

aliases hold:
root: <username>@gmail.com

now: aliases are not used. If I change
accept from local for any relay via smtps+auth://gm...@smtp.gmail.com:465
auth <secrets>

to

accept from local for any alias <aliases> relay via smtps+auth://
gm...@smtp.gmail.com:465 auth <secrets>

"smtpd -n" exhausts:
/etc/smtpd.conf:18: aliases/virtual may not be used with a relay rule
warn: no rules, nothing to do

what i want is:
- accept mail from local,
- apply alias expansion so "root" -> "<username> @ maildomain"
- relay the whole thing.

at the smarthost this shall look like:
From: root @ servername
To: <username> @ maildomain

any idea how to make it happen with opensmtpd?
There are lots of examples to find within the www, but non with relaying.
All with local delivery. But I like to relay and expand aliases before!

-- 
Thomas

Reply via email to