Gerben Wierda via Postfix-users: > I was wondering, suppose I have a user like this: > > f...@bar.com is the account name > foo.lastn...@bar.com is the incoming alias and the outgoing canonical > > Could I force incoming mail to accept the alias form, but not > accept the account form? I.e. f...@bar.com as address is blocked, > but foo.lastn...@bar.com is accepted and delivered to f...@bar.com > > The spammers that send to my systems use the account form (and not > the alias/canonical) a lot, that's why I'm asking > > I can of course create a new account form (a...@bar.com) and use > aliases/canonicals on that, but that might not take hold in the > long term and I would have to let users change their auth settings > (which now is user 'foo' and 'password')
Could this be as simple as an smtpd_recipient_restriction /etc/postfix/main.cf smtpd_recipient_restriction = ... reject_unauth_destination check_recipient_access pcre:/etc/postfix/reject-account.pcre ... /etc/postfix/reject-account.pcre: /^[^.]+@example\.com$/ reject must use the first.last form Or the hard-core form: /etc/postfix/main.cf smtpd_recipient_restriction = ... reject_unauth_destination check_recipient_access pcre:{{/^[^.]+@example\.com$$/ reject must use the first.last form}} ... If this is intended only for *some* accounts, then you need one to enumerate the forbidden forms. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org