On Wed, Feb 08, 2012 at 06:06:24PM +0100, Denis Witt wrote:
> On 07.02.2012 13:57, Nikolaos Milas wrote:
> 
> >>I wonder if there is an easy solution to disallow a
> >>specific sender (From-Header) to send e-mails to non
> >>$mydestination addresses.
> 
> >Check smtpd_sender_restrictions and/or
> >smtpd_client_restrictions, as well as restriction classes:
> >http://www.postfix.org/SMTPD_ACCESS_README.html
> >http://www.postfix.org/RESTRICTION_CLASS_README.html
> 
> it seems that restriction classes, etc. are working fine
> if mail is send by SMTP, not by local processes (sendmail,
> etc.). Is this correct or do I miss something?

Correct. smtpd_* settings only apply to smtpd(8); sendmail(1) has no 
feature to limit source and destination addresses. Your only choices 
there would be to use authorized_submit_users to block access to 
sendmail, or to write some kind of software to sit in front of 
sendmail and check your access rules.

http://www.postfix.org/postconf.5.html#authorized_submit_users
http://www.postfix.org/sendmail.1.html
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

Reply via email to