On Fri, Oct 30, 2015 at 03:56:23AM -0400, Daniel Ouellet wrote: > 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? >
Then you should use the 'recipient' keyword: accept [...] for domain <domains> recipient <whitelist> [...] Goal of aliases / virtual is to resolve a user-part/address into a local delivery ... which makes no sense if your mail is not local. -- Gilles Chehade https://www.poolp.org @poolpOrg