Re: Reject subdomains
- On 9/2/2009 6:48 AM, indio wrote:
> I want to reject all mails sent from *.mydomain.tld, or at least applyYou probably want to set
> the same
> restrictions as to mydomain.tld. I tried some
> but wasn't able to make it work.
> I want user@... needed to log in to send mails, and I want
> user@... be treated as any other external mail account
> mailing me.
> Aleady tried subdomain_matches_parent_domain, but nothing happened.
> mynetworks = 127.0.0.1 , 10.111.1.0/24
> myhostname = mail.mydomain.tld
> mydomain = mail.mydomain.tld
> myorigin = $mydomain
> mydestination = $myhostname, $mydomain, localhost
> mynetworks_style = subnet
> relay_domains = $mydestination
> smtpd_sender_login_maps = mysql:/etc/postfix/smtpd_sender_login_maps.cf
> smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch
> smtpd_reject_unlisted_sender = yes
ie. set it empty.
-- Noel Jones