Re: SMTP sender accepted when from a different domain

2013-08-30 Thread Jean-Sébastien Nicaise
On Fri, Aug 30, 2013 at 3:48 PM, John Peach wrote: > On Fri, 30 Aug 2013 15:43:01 -0400 > Jean-Sébastien Nicaise wrote: > > [snip] > > > > I'm hoping for something simple like: user sends an email. Postfix looks > at > > MAIL FROM. Is the email address part of $mydomain? if so, relay mail. If >

Re: SMTP sender accepted when from a different domain

2013-08-30 Thread Jean-Sébastien Nicaise
On Fri, Aug 30, 2013 at 3:25 PM, /dev/rob0 wrote: > On Fri, Aug 30, 2013 at 03:12:40PM -0400, Jean-Sébastien Nicaise > wrote: > > On Fri, Aug 30, 2013 at 2:44 PM, Wietse Venema > > wrote: > > > > > Jean-S?bastien Nicaise: > > > > I'm verifying the sender email (mail from:) of mails sent from > >

Re: SMTP sender accepted when from a different domain

2013-08-30 Thread John Peach
On Fri, 30 Aug 2013 15:52:22 -0400 Jean-Sébastien Nicaise wrote: > On Fri, Aug 30, 2013 at 3:48 PM, John Peach wrote: > > > On Fri, 30 Aug 2013 15:43:01 -0400 > > Jean-Sébastien Nicaise wrote: > > > > [snip] > > > > > > I'm hoping for something simple like: user sends an email. Postfix looks >

Re: SMTP sender accepted when from a different domain

2013-08-30 Thread /dev/rob0
On Fri, Aug 30, 2013 at 03:12:40PM -0400, Jean-Sébastien Nicaise wrote: > On Fri, Aug 30, 2013 at 2:44 PM, Wietse Venema > wrote: > > > Jean-S?bastien Nicaise: > > > I'm verifying the sender email (mail from:) of mails sent from > > > local users, not the recipient email (rcpt to:). > > > > In

Re: SMTP sender accepted when from a different domain

2013-08-30 Thread Wietse Venema
Jean-S?bastien Nicaise: > I'm verifying the sender email (mail from:) of mails sent from local users, > not the recipient email (rcpt to:). In that case. /etc/postfix/main.cf: smtpd_reject_unlisted_sender = yes This turns on "used unknown" tests for for MAIL FROM addresses. Wietse

Re: SMTP sender accepted when from a different domain

2013-08-30 Thread Jean-Sébastien Nicaise
On Fri, Aug 30, 2013 at 2:44 PM, Wietse Venema wrote: > Jean-S?bastien Nicaise: > > I'm verifying the sender email (mail from:) of mails sent from local > users, > > not the recipient email (rcpt to:). > > In that case. > > /etc/postfix/main.cf: > smtpd_reject_unlisted_sender = yes > > This t

Re: SMTP sender accepted when from a different domain

2013-08-30 Thread Jean-Sébastien Nicaise
I'm verifying the sender email (mail from:) of mails sent from local users, not the recipient email (rcpt to:). the mapping parameter used in this case it: *smtpd_sender_login_maps * My question still stands...* * On Fri, Aug 30, 2013 at 1:50 PM, Wietse Venema wrote: > Jean-S?bastien Nicaise:

Re: SMTP sender accepted when from a different domain

2013-08-30 Thread /dev/rob0
Please don't top-post your replies here. Thank you. On Fri, Aug 30, 2013 at 02:00:09PM -0400, Jean-Sébastien Nicaise wrote: > I'm verifying the sender email (mail from:) of mails sent from > local users, not the recipient email (rcpt to:). > > the mapping parameter used in this case it: *smtpd_s

Re: SMTP sender accepted when from a different domain

2013-08-30 Thread Wietse Venema
Jean-S?bastien Nicaise: > If a local user sends an email with an invalid email address (mailf > from:inva...@example.com, for example), the ldap table lookup does not > return anything, hence the mail is blocked. > > If a local user sends an email with a valid email (mail > from:us...@example.com,

SMTP sender accepted when from a different domain

2013-08-30 Thread Jean-Sébastien Nicaise
Apoligies if I'm not using the mailing list incorrectly, first time using one. I have a postfix installation that is used to relay mails from local users and to receive mail from external domains. my domain: example.com my domain is setup with active directory lookup. If a local user sends an e