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

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, pas

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 >> /./

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

2009-11-18 Thread lst_hoe02
Zitat von "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 want those cases

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 sol

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 fro

Re: Relayhost to multiple hosts

2009-11-18 Thread Eero Volotinen
Quoting 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

Re: Relayhost to multiple hosts

2009-11-18 Thread Dhiraj Chatpar
can you please give me a tutorial to achieve this? Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." On Wed, Nov 18, 2009 at 17:57, Eero Volotinen wrote: > Quoting Dhiraj Chatpar : > > Hi, >

Re: Relayhost to multiple hosts

2009-11-18 Thread Eero Volotinen
Quoting Dhiraj Chatpar : 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 - "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 wrote: > Quoting Dhiraj Chatpar :

Re: Relayhost to multiple hosts

2009-11-18 Thread Eero Volotinen
Quoting Dhiraj Chatpar : 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 : > 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. relayhost.mydoma

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 - "Sports is like a war without the killing." On Wed, Nov 18, 2009 at 19:08, Barney Desmond wrote: > 2009/11/19 Dhiraj Cha

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 t

Re: Relayhost to multiple hosts

2009-11-18 Thread Wietse Venema
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

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 - "The trouble with a kitten is that when it grows up, it's always a cat." On W

Re: Relayhost to multiple hosts

2009-11-18 Thread Daniel L'Hommedieu
On Nov 18, 2009, at 09:22, Dhiraj Chatpar wrote: > 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 - "The trouble with a kitten is that when it grows up, it's > always a cat." >

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=, relay=none, delay=20, delays=0.25/0/20/0, dsn=4.4.3, status=defe

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 di

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; Q

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 18/11/09 14:43:46 >>> Laurence Moughan: > obeml1# dig @resolver1.opendns.com eurocommerce.ie > > ; <<>> DiG 8.3 <<>> @resolver1.opendns.com eu

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 mes

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 lo

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 msg="PROTO

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 dire

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:

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 universa

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

Re: Relayhost to multiple hosts

2009-11-18 Thread Dhiraj Chatpar
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. And this is something i could think of. Since when did spamme

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. > > > > Without bothering to

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

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 tryi

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. > > >

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=< a...@

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 ; 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 m

Re: server configuration error

2009-11-18 Thread K bharathan
On Wed, Nov 18, 2009 at 9:46 PM, Stan Hoeppner wrote: > 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 > when i do a fgrep 2n.cz /var/log/mail i get the following: Nov 18 20:0

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

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 i

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 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 is no more

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=, 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: > /^X-Vmta.*2$/

Re: Postfix Multiple IPs

2009-11-18 Thread Phillip Smith
2009/11/18 Dhiraj Chatpar : > 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 of a script o

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 : >> 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. Mer

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 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 changed. Yes, thi

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 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

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 bo

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 i

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 m

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 confl

Re: server configuration error

2009-11-18 Thread K bharathan
On Wed, Nov 18, 2009 at 11:39 PM, Wietse Venema wrote: > 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 21876 /

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

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 REJECT > 90.150.64.0/18 REJECT > 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 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 REJECT > > 90.150.64.0/18

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 fo