Re: two routers into postfix

2014-01-10 Thread Wietse Venema
Noel Jones: > > Cons: you are going to see the routers internal interface on every > > connection, this configuration discards any filter or rate that you > > may use based on IP address. > > **DANGER** > Using SNAT is an easy way to make yourself an open relay. One must > insure that the router's

Re: two routers into postfix

2014-01-10 Thread Noel Jones
On 1/10/2014 3:25 PM, Alfonso Alejandro Reyes Jiménez wrote: > On 1/10/14, 9:18 AM, Andy Rowe wrote: >> >> # >> > I understand that you want to keep the connection on that belongs to > each router right? > > if so your issue is because you have asymmetric routing and may be > your firewall is bloc

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Wietse Venema
Alexandre Ellert: > But I got : > fatal: bad configuration > in mail.log Show the complete logfile record! Wietse

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
> I made more tests and greylisting is still a problem. > > I've tried with : > unverified_recipient_tempfail_action = permit > in main.cf > > But I got : > fatal: bad configuration > in mail.log > > How can I tell Postfix to queue the mail in case of remote reply 4xx ? > I answer to myself, i

Re: two routers into postfix

2014-01-10 Thread Alfonso Alejandro Reyes Jiménez
On 1/10/14, 9:18 AM, Andy Rowe wrote: Hello: I have a production mail / web server for a couple very low volume domains. (CentOS 6.4, apache, postfix) I have a production exchange server for another small domain. I want to set the CentOS server up to serve mail to its current clients as wel

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
> Wietse : > If the remote SMTP server uses greylisting, then the address > verification result will be "don't know" (*) and the Postfix SMTP server > will reply with 4xx (unless you configure Postfix otherwise). > > Wietse > (*) The Postfix SMTP client does not distiunguish between differen

Re: Postfix LDAP lot of LDAP request.

2014-01-10 Thread Venkat
On Fri, Jan 10, 2014 at 8:05 AM, Lanfeust troy wrote: > my.host.name.dom > host.name.dom > name.dom > .dom > u...@my.host.name.dom > > Do someone know howto disable this. > > thanks > > In our Postfix LDAP configuration, we use the following: domain = mydomain.com This seems to restrict the sea

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
> Wietse : > If the remote SMTP server uses greylisting, then the address > verification result will be "don't know" (*) and the Postfix SMTP server > will reply with 4xx (unless you configure Postfix otherwise). > > Wietse > (*) The Postfix SMTP client does not distiunguish between differe

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Wietse Venema
Alexandre Ellert: [reject_unverified_recipient] > Can you confirm that in case of greylisting at the destination > SMTP, it will work fine ? If the remote SMTP server uses greylisting, then the address verification result will be "don't know" (*) and the Postfix SMTP server will reply with 4xx (un

Postfix LDAP lot of LDAP request.

2014-01-10 Thread Lanfeust troy
Hi list, I have a postfix configured as virtual mailbox, domain no user account In my openldap.log i have a lotof request for example if send a mail to postfix via perl script.Postfix create LDAP request as: Jan 10 15:16:10 ldap-int-qo slapd[27062]: conn=4031 fd=17 ACCEPT from IP=IP_postfix:575

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
> This works like a charm. > > One last thing, concerning order of smtpd_recipient_restrictions, I currently > have this in master.cf : > > submission inet n - - - - smtpd > ... > -o > smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
> Wietse : > In that case use: > > /etc/postfix/main.cf: >smtpd_recipient_restrictions = >... >check_sender_access hash:/etc/postfix/sender_access >... > > /etc/postfix/sender_access: >x...@example.com reject_unverified_recipient >example.net reject_unverif

RE: two routers into postfix

2014-01-10 Thread Andy Rowe
> -Original Message- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Noel Jones > Sent: Friday, January 10, 2014 10:33 AM > To: postfix-users@postfix.org > Subject: Re: two routers into postfix > > On 1/10/2014 9:18 AM, Andy Rowe wrote: > >

Re: two routers into postfix

2014-01-10 Thread Noel Jones
On 1/10/2014 9:18 AM, Andy Rowe wrote: > Hello: > > I have a production mail / web server for a couple very low volume > domains. (CentOS 6.4, apache, postfix) I have a production exchange > server for another small domain. I want to set the CentOS server up > to serve mail to its current clients

Re: ..:: Per user server ::..

2014-01-10 Thread Alfonso Alejandro Reyes Jiménez
On 1/10/14, 9:18 AM, Wietse Venema wrote: Alfonso Alejandro Reyes Jim?nez: On 1/9/14, 10:07 PM, Kirill Bychkov wrote: 10.01.2014 3:56 "Alfonso Alejandro Reyes Jim?nez" mailto:are...@ibossmonitor.com>> ???: Hi Everyone. Is it posible to validate users before deliver? The thin

two routers into postfix

2014-01-10 Thread Andy Rowe
Hello: I have a production mail / web server for a couple very low volume domains. (CentOS 6.4, apache, postfix) I have a production exchange server for another small domain. I want to set the CentOS server up to serve mail to its current clients as well as act as a gateway for content filtering

Re: ..:: Per user server ::..

2014-01-10 Thread Wietse Venema
Alfonso Alejandro Reyes Jim?nez: > On 1/9/14, 10:07 PM, Kirill Bychkov wrote: > > > > > > 10.01.2014 3:56 "Alfonso Alejandro Reyes Jim?nez" > > mailto:are...@ibossmonitor.com>> ???: > > > > > > Hi Everyone. > > > > > > Is it posible to validate users before deliver? The thing is t

Re: Fwd: Header_checks

2014-01-10 Thread Noel Jones
On 1/10/2014 7:13 AM, Wijatmoko U. Prayitno wrote: > On Fri, 10 Jan 2014 06:34:24 -0600 > Noel Jones wrote: > >> On 1/10/2014 3:48 AM, Ansgar Wiechers wrote: >>> On 2014-01-10 Wijatmoko U. Prayitno wrote: On Fri, 10 Jan 2014 09:15:38 +0100 Kenneth Qvistgaard Dalbjerg wrote: > I have this

Re: ..:: Per user server ::..

2014-01-10 Thread Alfonso Alejandro Reyes Jiménez
On 1/9/14, 10:07 PM, Kirill Bychkov wrote: 10.01.2014 3:56 пользователь "Alfonso Alejandro Reyes Jiménez" mailto:are...@ibossmonitor.com>> написал: > > Hi Everyone. > > Is it posible to validate users before deliver? The thing is that we have 2 email servers (1 exchange and 1 postfix) with d

Re: relay mail - smtp_generic_maps

2014-01-10 Thread Wietse Venema
pgala: > i have application where user can set sender and recipient. This application > dosen't have error check. I want set able relay mail for all user settings, > independent of correctness. For example corect user are: > user1@domain1 (default user) > user2@domain2 > > i want get situation tha

Re: Fwd: Header_checks

2014-01-10 Thread Wietse Venema
Wijatmoko U. Prayitno: > $ cat test.pcre > if !/^To:.*\@customer\.dk$/ > /^From:.*\@ullabulla\.dk$/ REDIRECT myem...@ourdomain.dk > endif You get the exact same result without the IF rule. Wietse

Re: Fwd: Header_checks

2014-01-10 Thread Wijatmoko U. Prayitno
On Fri, 10 Jan 2014 06:34:24 -0600 Noel Jones wrote: > On 1/10/2014 3:48 AM, Ansgar Wiechers wrote: > > On 2014-01-10 Wijatmoko U. Prayitno wrote: > >> On Fri, 10 Jan 2014 09:15:38 +0100 Kenneth Qvistgaard Dalbjerg wrote: > >>> I have this in my header_checks files: > >>> > >>> /^From:.*\@ullabul

Re: relay mail - smtp_generic_maps

2014-01-10 Thread pgala
i have application where user can set sender and recipient. This application dosen't have error check. I want set able relay mail for all user settings, independent of correctness. For example corect user are: user1@domain1 (default user) user2@domain2 i want get situation that if user set user3@d

Re: Fwd: Header_checks

2014-01-10 Thread Noel Jones
On 1/10/2014 3:48 AM, Ansgar Wiechers wrote: > On 2014-01-10 Wijatmoko U. Prayitno wrote: >> On Fri, 10 Jan 2014 09:15:38 +0100 Kenneth Qvistgaard Dalbjerg wrote: >>> I have this in my header_checks files: >>> >>> /^From:.*\@ullabulla\.dk/ REDIRECT myem...@ourdomain.dk >>> >>> Thats working fi

Re: Return Path header

2014-01-10 Thread Wietse Venema
jvanb: > I am really sorry to bother you with this question. I am totally new at > postfix and would really appreciate a little help. > I have read the manuals and added sender_canonical_maps=n...@example.com to > my master.cf file and reloaded postfix. But the return-path is still set to > the sen

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Wietse Venema
Alexandre Ellert: > > Wietse : > > You can push the problem back to the webservers, by using the the > > Postfix SMTP server's "reject_unverified_recipient" feature. > > > > With this, Postfix will make one connection for the recipient > > address, and then the Postfix SMTP server answers with 5XX

Re: Protocol error leads to junk

2014-01-10 Thread Wietse Venema
Nikolaos Milas: > Thank you Wietse, > > I contacted them and they seem to have adjusted their software so that > it behaves more "appropriately". No protocol errors any more. Actually the bug was that they did not wait for the last line of the 220 greeting, as per my corrected response. That sof

Re: Return Path header

2014-01-10 Thread jvanb
I am really sorry to bother you with this question. I am totally new at postfix and would really appreciate a little help. I have read the manuals and added sender_canonical_maps=n...@example.com to my master.cf file and reloaded postfix. But the return-path is still set to the sender address. Can

Re: Protocol error leads to junk

2014-01-10 Thread Nikolaos Milas
Thank you Wietse, I contacted them and they seem to have adjusted their software so that it behaves more "appropriately". No protocol errors any more. Best regards, Nick On 9/1/2014 2:01 μμ, Wietse Venema wrote: They have a buggy SMTP client. The client is PIPELINING the SMTP commands, but

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
> Wietse : > You can push the problem back to the webservers, by using the the > Postfix SMTP server's "reject_unverified_recipient" feature. > > With this, Postfix will make one connection for the recipient > address, and then the Postfix SMTP server answers with 5XX to the > web application when

Re: Fwd: Header_checks

2014-01-10 Thread Ansgar Wiechers
On 2014-01-10 Wijatmoko U. Prayitno wrote: > On Fri, 10 Jan 2014 09:15:38 +0100 Kenneth Qvistgaard Dalbjerg wrote: >> I have this in my header_checks files: >> >> /^From:.*\@ullabulla\.dk/ REDIRECT myem...@ourdomain.dk >> >> Thats working fine, but i will like, if mail sent to *@customer.dk

Re: Fwd: Header_checks

2014-01-10 Thread Wijatmoko U. Prayitno
On Fri, 10 Jan 2014 09:15:38 +0100 Kenneth Qvistgaard Dalbjerg wrote: > I have this in my header_checks files: > > /^From:.*\@ullabulla\.dk/ REDIRECT myem...@ourdomain.dk > > Thats working fine, but i will like, if mail sent to *@customer.dk is not > forwarded to my mail address, but inste

Fwd: Header_checks

2014-01-10 Thread Kenneth Qvistgaard Dalbjerg
Hi I have this in my header_checks files: /^From:.*\@ullabulla\.dk/ REDIRECT myem...@ourdomain.dk Thats working fine, but i will like, if mail sent to *@customer.dk is not forwarded to my mail address, but instead is sent to the original recipient. Is that posible to do? Regards Kenneth D