postfix and header_checks problem.

2009-08-12 Thread flux
Hi all! I expierence problem with building regexp rules in header_checks. All I need is to reject email coming from addre...@domain1.com to addre...@domain2.com. How can I issue such excact rule? Thank you. flux.

Re: filtering mail from outside with dynamic address

2009-08-12 Thread Mikael Bak
Hi, Florin Andrei wrote: > Running Postfix 2.5.5 on Linux. The system is multihomed, connected to > several private networks, and to the Internet with a dynamic DNS hostname. > Is it really recommended to run a mail server that accepts email from outside with non static IP address? I would not

Re: SSL_accept error

2009-08-12 Thread Ebbe Hjorth
2009/8/11 Brian Evans - Postfix List > Brian Evans - Postfix List wrote: > > Ebbe Hjorth wrote: > > > >> 2009/8/11 Brian Evans - Postfix List >> > > >> > >> Ebbe Hjorth wrote: > >> > 2009/8/10 Brian Evans - Postfix List >>

Re: SSL_accept error

2009-08-12 Thread Zaeem Arshad
On Tue, Aug 11, 2009 at 11:27 PM, Ebbe Hjorth wrote: > > > 2009/8/11 Brian Evans - Postfix List > >> Ebbe Hjorth wrote: >> > 2009/8/10 Brian Evans - Postfix List > > > >> > >> > A great guide by a frequent poster here is >> > >> http://postfix.state-of-mind.de

Re: SSL_accept error

2009-08-12 Thread Ebbe Hjorth
2009/8/12 Zaeem Arshad > > > On Tue, Aug 11, 2009 at 11:27 PM, Ebbe Hjorth wrote: > >> >> >> 2009/8/11 Brian Evans - Postfix List >> >>> Ebbe Hjorth wrote: >>> > 2009/8/10 Brian Evans - Postfix List >> > > >>> > >>> > A great guide by a frequent poster here is

Re: postfix and header_checks problem.

2009-08-12 Thread Barney Desmond
2009/8/12 : > Hi all! > > I expierence problem with building regexp rules in header_checks. All I need > is to reject email coming from addre...@domain1.com to addre...@domain2.com. > How can I issue such excact rule? It's not possible with header_checks. header_checks works on each header indepe

Re: filtering mail from outside with dynamic address

2009-08-12 Thread Barney Desmond
2009/8/12 Florin Andrei : Is there a way to bind the listener to an interface using the interface name (eth5:smtp) instead of the IP (1.2.3.4:smtp)? >> >> No. The bind(2) system call specifies an address. Not an interface, >> and not the route. Connections with source address of X are not

Re: filtering mail from outside with dynamic address

2009-08-12 Thread Wietse Venema
Florin Andrei: > Wietse Venema wrote: > > Florin Andrei: > >> Florin Andrei wrote: > >>> Is there a way to bind the listener to an interface using the interface > >>> name (eth5:smtp) instead of the IP (1.2.3.4:smtp)? > > > > No. The bind(2) system call specifies an address. Not an interface, > >

need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Guidarini, Robert
I was hoping someone would have experience in what I need to do. Our servers send emails to our postfix servers and include a custom header that the value is referenced in one of our databases. This concerns outgoing email only. Example of custom header inserted into the emails: X-Info-MessageI

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Justin Piszcz
Hi, You want: PREPEND http://www.postfix.org/header_checks.5.html PREPEND text... Prepend one line with the specified text, and inspect the next input line. Notes: o The prepended text is output on a separate

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Wietse Venema
Justin Piszcz: > Hi, > > You want: PREPEND > > http://www.postfix.org/header_checks.5.html Please note that you don't have to use regexp tables for this. It should be possible to do header PREPEND actions from MySQL etc. too, as long as you can formulate the right query. Wietse > >

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Thomas Gelf
Wietse Venema wrote: > Justin Piszcz: >> You want: PREPEND > > Please note that you don't have to use regexp tables for this. > It should be possible to do header PREPEND actions from MySQL etc. > too, as long as you can formulate the right query. >>> What I would like to see in the logs is somet

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Thomas Gelf
Thomas Gelf schrieb: > If I didn't missunderstand him he already has those X-Info-MessageID > headers in his mail headers, what he wants is Postfix to do is writing > them to syslog. That's what happens if you're at phone while writing :-/ It should read: "...already has those X-Info-MessageID hea

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Noel Jones
Thomas Gelf wrote: Thomas Gelf schrieb: If I didn't missunderstand him he already has those X-Info-MessageID headers in his mail headers, what he wants is Postfix to do is writing them to syslog. That's what happens if you're at phone while writing :-/ It should read: "...already has those X-I

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Thomas Gelf
Noel Jones wrote: > To log an existing header, use the header_checks WARN action. > http://www.postfix.org/header_checks.5.html Thank you! > The log entry would look something like: > Aug 12 10:29:59 mgate2 postfix/cleanup[29258]: 7C773797ADF: warning: > header X-Info-Messageid: l6oL1rHPRUyklkQzd

RE: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Guidarini, Robert
Our application already inserts the custom header into the email. If we can get postfix to log the custom private ID, then the goal is to schedule another application once a day to grab the archived mail log and parse the information out so we can match up our private msg ID with postfix's msg I

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Noel Jones
Thomas Gelf wrote: Noel Jones wrote: To log an existing header, use the header_checks WARN action. http://www.postfix.org/header_checks.5.html Thank you! The log entry would look something like: Aug 12 10:29:59 mgate2 postfix/cleanup[29258]: 7C773797ADF: warning: header X-Info-Messageid: l6o

Postfix recompilation questions

2009-08-12 Thread Juraj Marusiak
Hi all, I have some questions regarding postfix. 1. I need to relay all emails through my ISP mail server which requires authentication (AUTH PLAIN LOGIN). In order to achieve this, i assume, i need SASL support compiled. Do I really need SASL compiled if i want to send mails 'only'? (just to mak

Re: Postfix recompilation questions

2009-08-12 Thread Wietse Venema
Juraj Marusiak: > Hi all, > > I have some questions regarding postfix. > > 1. > I need to relay all emails through my ISP mail server which requires > authentication (AUTH PLAIN LOGIN). In order to achieve this, i assume, i > need SASL support compiled. Do I really need SASL compiled if i want to

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Thomas Gelf
Noel Jones wrote: > The entire header (up to a sanity limit) is logged; no further action is > necessary. Great, thanks again!

Re: need to add custom header parameter/value to postfix logging.

2009-08-12 Thread Bastian Blank
On Wed, Aug 12, 2009 at 08:09:32AM -0500, Guidarini, Robert wrote: > Example of custom header inserted into the emails: > X-Info-MessageID: l6oL1rHPRUyklkQzdkW3kg Why don't you add this to the message-id, which is mandatory and already logged? Bastian -- He's dead, Jim. -- McCoy

Re: Configurable replies for hardcoded REJECTS?

2009-08-12 Thread OneTrueDabe
Patrick Ben Koetter wrote: > > a customer asked me to help them customize Postfix replies, so clients > (better: users) can get a hint why their message is being rejected. > > The idea is to refer to an URL in the reply where (generic) verbose > explanations on the reject reason can be found. S

Re: Postfix recompilation questions

2009-08-12 Thread /dev/rob0
On Wednesday 12 August 2009 11:24:43 Wietse Venema wrote: > Juraj Marusiak: > > 2. > > In case SASL is needed for this, which plugin should i compile? > > (cyrus or dovecot) > > Only the SASL one supports client authentication. --^ Cyrus http://www.postfix.org/SASL_README.html#versions ht

Re: filtering mail from outside with dynamic address

2009-08-12 Thread Florin Andrei
Mikael Bak wrote: Is it really recommended to run a mail server that accepts email from outside with non static IP address? I would not do it. As long as the dynamic DNS service works well, and the IP address only changes very rarely, why not? I've been doing this for close to a decade now

postfix terminating on signal 15

2009-08-12 Thread Jeroen van Aart
Server is debian lenny 64 bits, 32 GB, 4 CPU cores. Postfix package is version 2.5.5-1.1 The above mentioned server has a problem that postfix keeps terminating at regular intervals. I believe I have narrowed the problem down to a program eating a lot of memory, likely due to multiple forks ea

Re: postfix terminating on signal 15

2009-08-12 Thread Sahil Tandon
On Wed, 12 Aug 2009, Jeroen van Aart wrote: > I am not sure if it's the kernel's OOM killer or postfix itself which > causes it to quit. I do not see a mention in /var/log/messages about the > OOM killer killing postfix, but I do see a mention in /var/log/mail.info > about reading "postfix/maste

Re: Configurable replies for hardcoded REJECTS?

2009-08-12 Thread Wietse Venema
OneTrueDabe: > As Patrick mentioned, it would be nice to have, e.g.: > > unknown_address_reject_reason > unknown_hostname_reject_reason > unknown_client_reject_reason > ... etc. And I will also repeat my reply. Instead of having to maintain a bazillion different reply parameters, would n

Email server health check?

2009-08-12 Thread email builder
Hi, I am wondering if anyone has advice on where there are any email health checks online. I used to use dnsstuff.com but they have since gone commercial. It's frustrating to have your users' emails land in Yahoo or Gmail spam folders, but not be able to understand why. DNS checks out fin

IPv6 and smarter relaying

2009-08-12 Thread Dave Täht
I have setup my laptop (as a test) to send out and respond to ipv6 mail, and not listen on the ipv4 ports at all. I tunnel my laptop out to have a static ipv6 address, and have mx records (for the teklibre.org domain) that have a priority 10 for the ipv6 "direct" connection, and a priority 20 mx r

Re: Configurable replies for hardcoded REJECTS?

2009-08-12 Thread Dabrien 'Dabe' Murphy
Wietse Venema wrote: Instead of having to maintain a bazillion different reply parameters, would not it be sufficient to have one generic reply line that gets appended to all those reject commands? Hi Wietse, If the dilemma is between: * Implementing your proposed work-around quickly,

Re: IPv6 and smarter relaying

2009-08-12 Thread Dave Täht
d...@teklibre.org (Dave Täht) writes: Half solved! > I have setup my laptop (as a test) to send out and respond to ipv6 mail, > and not listen on the ipv4 ports at all. I tunnel my laptop out to > have a static ipv6 address, and have mx records (for the teklibre.org > domain) that have a priority

Postfix ipv6 rbl

2009-08-12 Thread Hari Hendaryanto
Hi, Does reject_rbl_client handle ipv6 address? in ipv4, lookup would be like this: example ip 1.2.3.4 $dig a 4.3.2.1.dnsbl.domain.tld +short 127.0.0.10 $dig txt 4.3.2.1.dnsbl.domain.tld +short "http://www.domain.tld/query/bl?ip=1.2.3.4"; if yes, how does reject_rbl_client handle it? what k