Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread David Touzeau
Dear I have a plan to do this : Some people can send mails to Internet (foreign domains) Some people can only send mails to the user local database and not to foreign domains. Is there a map solution to do this behavior ?? Best regards

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread Benny Pedersen
On Sun, July 26, 2009 15:44, David Touzeau wrote: Is there a map solution to do this behavior ?? policyd v2 can do this http://www.policyd.org/ its more complicated without :-) join policyd maillist for more info on this -- xpoint

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread Damian Myerscough
Hello, You can also use smtpd_sender_login_maps which allows you to map email addresses to users e.g. smtpd_sender_login_maps = hash:/etc/postfix/sender_maps The contents of sender_maps would look like dam...@example.com damian 2009/7/26 Benny Pedersen m...@junc.org: On Sun, July 26,

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread David Touzeau
On Sun, July 26, 2009 15:44, David Touzeau wrote: Is there a map solution to do this behavior ?? policyd v2 can do this http://www.policyd.org/ its more complicated without :-) join policyd maillist for more info on this Hum... i have read the policyd doc but it seems not answer

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread David Touzeau
Le dimanche 26 juillet 2009 à 16:01 +0100, Damian Myerscough a écrit : Hello, You can also use smtpd_sender_login_maps which allows you to map email addresses to users e.g. smtpd_sender_login_maps = hash:/etc/postfix/sender_maps The contents of sender_maps would look like

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread /dev/rob0
On Sunday 26 July 2009 10:29:50 David Touzeau wrote: My need is simple: j...@domain.tld can send email to san...@domain.tld has j...@domain.tld and san...@domain.tld are internal users. But j...@domain.tld cannot send mail to u...@gmail.com because gmail.com is a foreign domain. (internet

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread mouss
David Touzeau a écrit : Dear I have a plan to do this : Some people can send mails to Internet (foreign domains) Some people can only send mails to the user local database and not to foreign domains. Is there a map solution to do this behavior ?? smtpd_sender_restrictions =

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread Benny Pedersen
On Sun, July 26, 2009 19:26, mouss wrote: (the alternative would be to give no login:pass to restricted users). practical joke ? -- xpoint

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread David Touzeau
Le dimanche 26 juillet 2009 à 19:26 +0200, mouss a écrit : David Touzeau a écrit : Dear I have a plan to do this : Some people can send mails to Internet (foreign domains) Some people can only send mails to the user local database and not to foreign domains. Is there a map

Re: Tips to deny sending to foreign domains from some internal users

2009-07-26 Thread Damian Myerscough
I forgot to mention that when you use smtpd_sender_login_maps you also need to add the following to the main.cf file. smtpd_sender_restrictions = reject_sender_login_mismatch 2009/7/26 David Touzeau da...@touzeau.eu: Le dimanche 26 juillet 2009 à 19:26 +0200, mouss a écrit : David Touzeau a