Re: need help with pcre for postfix

2009-11-18 Thread pascal valois
Viktor, Yes, Milter seems way to much for what i wanna do. i installed postfix-pcre on ubuntu 8.04. and add this line in my main.cf postfix configuration : header_checks = pcre:/etc/postfix/header_checks then here is the content of my /etc/postfix/header_checks : !/postmas...@devinci\.fr/

Re: need help with pcre for postfix

2009-11-18 Thread pascal valois
hum, i think i found what was wrong. when checking with pcre, all lines in the header are processed. and then the from: adress get a REJECT go away reponse from the filter. i though that all the subject was processed as once ? right or wrong ? Le mercredi 18 novembre 2009 à 09:17 +0100,

Re: How to restrict domain in postfix ?

2009-11-18 Thread J. Bakshi
Magnus Bäck wrote: On Wed, November 18, 2009 5:38 am, Eero Volotinen said: J. Bakshi wrote: Could you kindly give me an example to restrict the domain with access ? How about following: access.pcre: /^DOMAIN\.NET$/ OK /./ REJECT No,

Re: Attempt MX, fallback to relay in case of error only

2009-11-18 Thread lst_hoe02
Zitat von cont...@rusanu.com cont...@rusanu.com: Is there a way to configure postfix to use a relay only if direct delivery is rejected? The case being a web application that has to send notification to subscribers, but some servers reject the connection (app IP originates from AWS EC2). I

Relayhost to multiple hosts

2009-11-18 Thread Dhiraj Chatpar
Hi, I am looking for a solution where i would be able to configure one postfix instance in such a way that it rotates multiple relayhosts and acts as a host that relays emails to multiple hosts. For eg. we currently have the option of entering just one relayhost = xx.xx.xx.xx. However i need a

fatal: error reading /var/lib/drac/dracd.db: Unknown error 4294936309 (Debian lenny)

2009-11-18 Thread Michael Moritz
Hi I'm working on upgrading to debian lenny and ran into this problem. I have dovecot with the drac plugin sending IPs to dracd writing to /var/lib/drac/dracd.db. The btree db seems okay - I can look up the IPs using postmap -q but I get intermittent (every 4 minutes) the following errors

Re: Relayhost to multiple hosts

2009-11-18 Thread Eero Volotinen
Quoting Dhiraj Chatpar dchat...@gmail.com: Hi, I am looking for a solution where i would be able to configure one postfix instance in such a way that it rotates multiple relayhosts and acts as a host that relays emails to multiple hosts. For eg. we currently have the option of entering just

Re: Relayhost to multiple hosts

2009-11-18 Thread Dhiraj Chatpar
can you please give me a tutorial to achieve this? Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html - I, Joan Crawford, I believe in the dollar. Everything I earn, I spend. On Wed, Nov 18, 2009 at 17:57, Eero Volotinen eero.voloti...@iki.fi wrote: Quoting Dhiraj

Re: Relayhost to multiple hosts

2009-11-18 Thread Eero Volotinen
Quoting Dhiraj Chatpar dchat...@gmail.com: can you please give me a tutorial to achieve this? See the: http://cormander.com/blog/2008/05/round-robin-balancing-with-iptables/ and http://www.zytrax.com/books/dns/ch9/rr.html -- Eero

Re: Relayhost to multiple hosts

2009-11-18 Thread Dhiraj Chatpar
I believe there is an option within postfix too to achieve this? Ogden Nash http://www.brainyquote.com/quotes/authors/o/ogden_nash.html - The trouble with a kitten is that when it grows up, it's always a cat. On Wed, Nov 18, 2009 at 18:50, Eero Volotinen eero.voloti...@iki.fi wrote: Quoting

Re: Relayhost to multiple hosts

2009-11-18 Thread Eero Volotinen
Quoting Dhiraj Chatpar dchat...@gmail.com: I believe there is an option within postfix too to achieve this? As far as I known, postfix only supports one relayhost plus backup host. -- Eero

Re: Relayhost to multiple hosts

2009-11-18 Thread Barney Desmond
2009/11/19 Dhiraj Chatpar dchat...@gmail.com: I believe there is an option within postfix too to achieve this? I'm fairly sure there's not. If you don't like the idea of using iptables, the alternative would be a customised DNS entry for your relayhost. Create a virtual relayhost A-record (eg.

Re: Relayhost to multiple hosts

2009-11-18 Thread Dhiraj Chatpar
What do you think about this?? will this work? http://souptonuts.sourceforge.net/postfix_sbr.html Ted Turner http://www.brainyquote.com/quotes/authors/t/ted_turner.html - Sports is like a war without the killing. On Wed, Nov 18, 2009 at 19:08, Barney Desmond barneydesm...@gmail.comwrote:

Re: How to restrict domain in postfix ?

2009-11-18 Thread Noel Jones
On 11/18/2009 2:49 AM, J. Bakshi wrote: Thanks for your hints. I am also searching for a simple solution which just start working from main.cf . I like my postfix to send email to a very specific domain only; just say gmail.com so if you try to send a mail to both gmail.com and yahoo.in then

Re: Relayhost to multiple hosts

2009-11-18 Thread Dhiraj Chatpar
We have 5 different servers.. all of them are mailing servers for our main company domain, I wish to Balance the mails across these 5 servers. Ogden Nash http://www.brainyquote.com/quotes/authors/o/ogden_nash.html - The trouble with a kitten is that when it grows up, it's always a cat. On Wed,

Re: mx fails due to typo on remote dns

2009-11-18 Thread Laurence Moughan
Hi, Got my network team to allow me port 53 to another dns resolver1.opendns.com ( entered this into my resolv.conf ) and get similar results, Nov 18 14:20:32 obeml1 postfix/smtp[21362]: [ID 197553 mail.info] AAC73239403: to=postmas...@eurocommerce.ie, relay=none, delay=20,

Re: Relayhost to multiple hosts

2009-11-18 Thread Wietse Venema
Dhiraj Chatpar: We have 5 different servers.. all of them are mailing servers for our main company domain, I wish to Balance the mails across these 5 servers. Isn't that what the DNS was invented for? You specify the domain and its servers, and then all standards-compliant mail systems will

Re: mx fails due to typo on remote dns

2009-11-18 Thread Wietse Venema
Laurence Moughan: obeml1# dig @resolver1.opendns.com eurocommerce.ie ; DiG 8.3 @resolver1.opendns.com eurocommerce.ie ; (1 server found) ;; res options: init recurs defnam dnsrch ;; got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 6 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1,

Limit send mail to alias

2009-11-18 Thread Michel Bulgado
Hello I created an alias with the email address of all users in my workplace to let them get notifications or possible changes in the system through email. Would like to limit the shipment from certain recipients, and if possible when you put the address or alias to the line of this is removed

Re: Relayhost to multiple hosts

2009-11-18 Thread Dhiraj Chatpar
Yes the DNS is a good idea.. However what will i achieve if i implement the following? # Changes in /etc/postfix2/main.cf sender_based_routing = yes relay unix - - n - - smtp -o fallback_relay= smtp_act1 unix - - n

Re: mx fails due to typo on remote dns

2009-11-18 Thread Laurence Moughan
I do ( detailed in the same email ) - and i get timeouts when there is a typo in the record - all correct records come back fine. Wietse Venema wie...@porcupine.org 18/11/09 14:43:46 Laurence Moughan: obeml1# dig @resolver1.opendns.com eurocommerce.ie ; DiG 8.3

A way to trace the mail flow

2009-11-18 Thread Alessandro Fachin
Hi all, sometimes (...) I need to trace the complete flow of mails through postfix queues until the delivered to dovecot (including the clients connections/disconnections and obviously the operations execute by Mailscanner). Usually I trace it with tail -f mail.log grepping sender/receiver or

Re: Relayhost to multiple hosts

2009-11-18 Thread Wietse Venema
Dhiraj Chatpar: Yes the DNS is a good idea.. However what will i achieve if i implement the following? The solution is to have multiple MX records in the DNS. All standards-compliant MTAs will spread the load WITHOUT ANY SENDER SIDE CONFIGURATION. Wietse

Re: mx fails due to typo on remote dns

2009-11-18 Thread Wietse Venema
Laurence Moughan: I do ( detailed in the same email ) - and i get timeouts when there is a typo in the record - all correct records come back fine. You are doing one MX lookup that times out. Then, two A lookups for the email domain name, and that is wrong. Instead, you need to do one MX

Re: mx fails due to typo on remote dns

2009-11-18 Thread Laurence Moughan
Found problem, Its not postfix nor os - thanks for all the help, its my toplayer IDS ! Nov 18 14:16:31 [10.142.4.252.2.2] 10.142.4.252 IPS5500-150E: id=060002 pt=TLN-TS prot=UDP cip=208.67.222.222 cprt=53 sip=193.95.152.20 sprt=48020 atck=tln-101047 disp=mitigate ckt=1 src=extern

Re: Attempt MX, fallback to relay in case of error only

2009-11-18 Thread cont...@rusanu.com
Thanks Andreas, The reject would be '553 Mail from ... not allowed', so it sounds like a dead end trying to configure postfix to handle this. Suggestions on how to workaround are welcome. Thanks, ~ Remus On Nov 18, 2009, at 1:12 AM, lst_ho...@kwsoft.de wrote: Zitat von cont...@rusanu.com

Re: Attempt MX, fallback to relay in case of error only

2009-11-18 Thread Wietse Venema
cont...@rusanu.com: Thanks Andreas, The reject would be '553 Mail from ... not allowed', so it sounds like a dead end trying to configure postfix to handle this. Suggestions on how to workaround are welcome. This is essentially the same problem as home office sites trying to send direct

Re: need help with pcre for postfix

2009-11-18 Thread Victor Duchovni
On Wed, Nov 18, 2009 at 09:17:14AM +0100, pascal valois wrote: i installed postfix-pcre on ubuntu 8.04. and add this line in my main.cf postfix configuration : header_checks = pcre:/etc/postfix/header_checks Why are using header checks to filter the envelope recipient address? (Hint: DO

Attempt MX, fallback to relay in case of error only

2009-11-18 Thread Stan Hoeppner
cont...@rusanu.com put forth on 11/18/2009 10:05 AM: Thanks Andreas, The reject would be '553 Mail from ... not allowed', so it sounds like a dead end trying to configure postfix to handle this. Suggestions on how to workaround are welcome. Given that the Amazon cloud is likely universally

Relayhost to multiple hosts

2009-11-18 Thread Stan Hoeppner
Wietse Venema put forth on 11/18/2009 9:25 AM: Dhiraj Chatpar: Yes the DNS is a good idea.. However what will i achieve if i implement the following? The solution is to have multiple MX records in the DNS. All standards-compliant MTAs will spread the load WITHOUT ANY SENDER SIDE

Re: Problem re-directing root's email

2009-11-18 Thread /dev/rob0
On Wed, Nov 18, 2009 at 07:56:40AM +0100, Ansgar Wiechers wrote: On 2009-11-17 LuKreme wrote: Here's a How-To from about 2003? specifically showing /etc/postfix/aliases as the preferred and default setting. http://www.hmug.org/UnixHowTos/index.php?postfix Without bothering to look at

Limit send mail to alias

2009-11-18 Thread Stan Hoeppner
Michel Bulgado put forth on 11/18/2009 8:54 AM: Hello I created an alias with the email address of all users in my workplace to let them get notifications or possible changes in the system through email. Would like to limit the shipment from certain recipients, and if possible when you

Re: Relayhost to multiple hosts

2009-11-18 Thread Noel Jones
On 11/18/2009 11:47 AM, Dhiraj Chatpar wrote: Well sir its our friend yahoo which is going to get me kicked off my job as an administrator. I had an issue where a email sent to a yahoo email address from My CEO didnt end up delivering. Ever since i have been wondering for solutions. You're

Re: Limit send mail to alias

2009-11-18 Thread Victor Duchovni
On Wed, Nov 18, 2009 at 11:51:22AM -0600, Stan Hoeppner wrote: I created an alias with the email address of all users in my workplace to let them get notifications or possible changes in the system through email. Would like to limit the shipment from certain recipients, and if

Re: Limit send mail to alias

2009-11-18 Thread Michel Bulgado
On Wed, 2009-11-18 at 13:11 -0500, Victor Duchovni wrote: On Wed, Nov 18, 2009 at 11:51:22AM -0600, Stan Hoeppner wrote: I created an alias with the email address of all users in my workplace to let them get notifications or possible changes in the system through email. Would

server configuration error

2009-11-18 Thread K bharathan
hi all the following is the log from my relay for example.com; this is read receipt which failed; this is happening only with this client domain; Nov 18 20:13:59 relay2 postfix/smtpd[4225]: NOQUEUE: reject: RCPT from ex.2n.cz[90.182.112.11]: 451 4.3.5 Server configuration error; from= to=

Re: server configuration error

2009-11-18 Thread Noel Jones
On 11/18/2009 1:36 PM, K bharathan wrote: hi all the following is the log from my relay for example.com http://example.com; this is read receipt which failed; this is happening only with this client domain; Nov 18 20:13:59 relay2 postfix/smtpd[4225]: NOQUEUE: reject: RCPT from ex.2n.cz

Re: server configuration error

2009-11-18 Thread Wietse Venema
K bharathan: hi all the following is the log from my relay for example.com; this is read receipt which failed; this is happening only with this client domain; Nov 18 20:13:59 relay2 postfix/smtpd[4225]: NOQUEUE: reject: RCPT from ex.2n.cz[90.182.112.11]: 451 4.3.5 Server configuration

server configuration error

2009-11-18 Thread Stan Hoeppner
K bharathan put forth on 11/18/2009 1:36 PM: -is anything wrong with my settings?! help appreciated Try: grep warning: /the/maillog/file -- Stan

Sending from multiple IPs, based on a header?

2009-11-18 Thread Ian Duggan
I am trying to configure postfix to work as follows: 1) In a header_check, look for a header X-Vmta: n where n is some number. 2) Based on n, choose an outgoing smtp transport (bound to some ip) Basically I want postfix to choose the outgoing IP based on a header that can be placed within the

Re: Sending from multiple IPs, based on a header?

2009-11-18 Thread Wietse Venema
Ian Duggan: I am trying to configure postfix to work as follows: 1) In a header_check, look for a header X-Vmta: n where n is some number. 2) Based on n, choose an outgoing smtp transport (bound to some ip) Basically I want postfix to choose the outgoing IP based on a header that can be

Re: server configuration error

2009-11-18 Thread Brian Evans - Postfix List
K bharathan wrote: but when i do a egrep '(warning|error|fatal|panic):' /var/log/mail | more i don't see any log details related to this client! You seem to be confused. The messages in the egrep command *may not* be directly related to a client. It can be very generalized but very useful in

Re: Sending from multiple IPs, based on a header?

2009-11-18 Thread Ian Duggan
On Wed, Nov 18, 2009 at 12:34 PM, Wietse Venema wie...@porcupine.org wrote: far, but I am getting a mail loops back to myself error. It means that the recipient domain resolves to a local address. Unfortunately you ignored instructions in the mailing list welcome message, and therefore there

Re: server configuration error

2009-11-18 Thread Wietse Venema
K bharathan: [90.182.112.11] Nov 18 20:06:10 relay1 postfix/smtpd[21876]: NOQUEUE: reject: RCPT from ex.2n.cz[90.182.112.11]: 451 4.3.5 Server configurati Now try: grep 21876 /the/log/file Wietse

Re: Sending from multiple IPs, based on a header?

2009-11-18 Thread Wietse Venema
Ian Duggan: Nov 18 15:19:22 mail01 postfix/smtp[]: D9024B689D2: to=test.scr...@gmail.com, relay=none, delay=0.05, delays=0.05/0/0/0, dsn=5.4.6, status=bounced (mail for mail01.scribd.com loops back to myself) header_checks is here: header_checks: /^X-Vmta.*1$/ FILTER vmta1:

Re: Postfix Multiple IPs

2009-11-18 Thread Phillip Smith
2009/11/18 Dhiraj Chatpar dchat...@gmail.com: Dear Sir, I read your post on the postfix forum. I am a fan of yours after what solutions you gave regarding iptables and rotation of IPs. i tried doing that on my server and still get deferred from yahoo. Is there a way i can rotate my IPs by way

Postfix Multiple IPs

2009-11-18 Thread Stan Hoeppner
Phillip Smith put forth on 11/18/2009 4:41 PM: 2009/11/18 Dhiraj Chatpar dchat...@gmail.com: Dear Sir, I read your post on the postfix forum. I am a fan of yours after what solutions you gave regarding iptables and rotation of IPs. i tried doing that on my server and still get deferred from

Re: Sending from multiple IPs, based on a header?

2009-11-18 Thread Ian Duggan
On Wed, Nov 18, 2009 at 2:03 PM, Wietse Venema wie...@porcupine.org wrote: The transports(5) manpage mentions that the destination defaults to the recipient domain. However, the scheduler uses a different default, which appears to be inconsistent. I wonder what would break if this were to be

Re: Sending from multiple IPs, based on a header?

2009-11-18 Thread Wietse Venema
Ian Duggan: On Wed, Nov 18, 2009 at 2:03 PM, Wietse Venema wie...@porcupine.org wrote: The transports(5) manpage mentions that the destination defaults to the recipient domain. However, the scheduler uses a different default, which appears to be inconsistent. I wonder what would break if

Re: How to restrict domain in postfix ?

2009-11-18 Thread J. Bakshi
Noel Jones wrote: On 11/18/2009 2:49 AM, J. Bakshi wrote: Thanks for your hints. I am also searching for a simple solution which just start working from main.cf . I like my postfix to send email to a very specific domain only; just say gmail.com so if you try to send a mail to both

Re: How to restrict domain in postfix ?

2009-11-18 Thread J. Bakshi
J. Bakshi wrote: Noel Jones wrote: On 11/18/2009 2:49 AM, J. Bakshi wrote: Thanks for your hints. I am also searching for a simple solution which just start working from main.cf . I like my postfix to send email to a very specific domain only; just say gmail.com so if you try to

Trying to exclude content_filter for submission users, but its still being applied if message delivered locally

2009-11-18 Thread Jay
I had a user that has a 3G data dongle and we found that their messages were being discarded. SpamAssassin was identifying the sender IP as from a DUL and assigned a very high score. I realized that I had not set the content-filter to be excluded for submission users, so I went and did that in

Re: How to restrict domain in postfix ?

2009-11-18 Thread Sahil Tandon
On Thu, 19 Nov 2009, J. Bakshi wrote: Noel Jones wrote: You have not sufficiently defined for us what you want postfix to do. The solution will probably involve more than just setting some flag in main.cf, but we don't really understand the problem yet. You keep getting conflicting

Re: server configuration error

2009-11-18 Thread K bharathan
On Wed, Nov 18, 2009 at 11:39 PM, Wietse Venema wie...@porcupine.orgwrote: K bharathan: [90.182.112.11] Nov 18 20:06:10 relay1 postfix/smtpd[21876]: NOQUEUE: reject: RCPT from ex.2n.cz[90.182.112.11]: 451 4.3.5 Server configurati Now try: grep 21876 /the/log/file Wietse grep

Re: Trying to exclude content_filter for submission users, but its still being applied if message delivered locally

2009-11-18 Thread Jay
On Nov 19, 2009, at 2:39 PM, Jay wrote: I had a user that has a 3G data dongle and we found that their messages were being discarded. SpamAssassin was identifying the sender IP as from a DUL and assigned a very high score. I realized that I had not set the content-filter to be excluded

Re: How to restrict domain in postfix ?

2009-11-18 Thread J. Bakshi
Sahil Tandon wrote: On Thu, 19 Nov 2009, J. Bakshi wrote: Noel Jones wrote: You have not sufficiently defined for us what you want postfix to do. The solution will probably involve more than just setting some flag in main.cf, but we don't really understand the problem yet. You

Re: server configuration error

2009-11-18 Thread Eray Aslan
On 19.11.2009 06:02, K bharathan wrote: now i understand ; in my check_client_access cidr:/etc/postfix/spam_cidr there was a block of IPs: 90.150.32.0/19 http://90.150.32.0/19REJECT 90.150.64.0/18 http://90.150.64.0/18REJECT 90.150.128.0/17

Re: server configuration error

2009-11-18 Thread K bharathan
On Thu, Nov 19, 2009 at 8:36 AM, Eray Aslan eray.as...@caf.com.tr wrote: On 19.11.2009 06:02, K bharathan wrote: now i understand ; in my check_client_access cidr:/etc/postfix/spam_cidr there was a block of IPs: 90.150.32.0/19 http://90.150.32.0/19REJECT

Use MX record when sending to $mydomain

2009-11-18 Thread cont...@rusanu.com
Hello, I'm using sendmail to send to someu...@mydomain.com from the machine that is the A DNS of mydomain, but is not the MX one. postfix relays this to 127.0.0.1 and it gets rejected with 450 user unknown. I want it to use the normal rules and deliver it to the MX registered address for