Ralf Hildebrandt:
> * Aaron D. Bennett <[EMAIL PROTECTED]>:
> > Hi,
> > 
> 
> > I'm seeing a strange behavior where smtpd_recipient_restrictions are
> > being applied to mail received over the network but not to mail sent
> > from local unix mail ( or from squirrelmail which is using
> > /usr/bin/sendmail ).
> 
> sendmail != smtpd
> thus smtpd_recipient_restrictions don't apply

To apply smtpd_recipient_restrictions when mail arrives via the
/usr/bin/sendmail command, this solution was posted a few days ago:

To force sendmail command-line submissions through the SMTP server,
use this:

/etc/postfix/master.cf
    pickup    fifo  n       -       n       60      1       pickup
            -o content_filter=smtp:[127.0.0.1]:10025
    [127.0.0.1]:10025
              inet  n       -       n       -       -       smtpd

The only reason for using port 10025 is that Postfix would otherwise
declare a mailer delivery loop.

Maybe it is reasonable to remove that check for mail to 127.0.0.1,
though it would take several years before we can rely on people
actually having this.

        Wietse

Reply via email to