Isn't the long form domain <domains> alias <aliases> should be supported
here for the relay configuration in smtpd.conf

In the man(5) smtpd.conf page I see this form as valid:

accept from any for domain <domains> alias <aliases> deliver to maildir
accept from any for domain <vdomains> virtual <vusers> deliver to \
        maildir

So, I would have expected to be able to use these forms:
accept from any for domain <domains> alias <aliases> relay via \
        smtp://127.0.0.1:10025
accept from any for domain <vdomains> virtual <vusers> relay via \
        smtp://127.0.0.1:10025

However it doesn't accept and I need to use this instead:

accept from any for domain <domains> relay via smtp://127.0.0.1:10025
accept from any for domain <vdomains> relay via smtp://127.0.0.1:10025

The users, or aliases part is not accepted.

Any thoughts on this? The reason I asked is that, let say you have a not
valid users if I can check the users BEFORE doing the local relay, it
avoid the additional processing and would be rejected right away oppose
to be after it is locally processed no?

I would really love to not have to process scanning with ClanAV,
SpammAssassin and the like before it is going to be rejected later anyway.

Am I miss understanding the man page or the processing here?

This is on 5.8 fresh install for testing, nothing special is done and
only packages are use.

Thanks for your time if you can share some ideas or even better correct
my thinking.

Daniel.

Reply via email to