Re: Betr.: Re: Betr.: Re: Trim part of the header with header rewriting ?

2009-11-17 Thread Arjan Melein
>>> Op 12-11-2009 om 21:35 is door Wietse Venema geschreven: > As shown below, Postfix 2.7 can "fix" commands from remote SMTP > clients. Meanwhile, I am adding a similar feature to "fix" replies > from remote SMTP servers. > > In your case the regexp could look like: > > /^RCPT\s+TO:(.*);1

Re: mx fails due to typo on remote dns

2009-11-17 Thread Laurence Moughan
Thanks Wietse, Thats the answer i was looking for - wil upgrade today. >>> Wietse Venema 17/11/09 00:18:48 >>> Postfix versions 2.3 and later skip a DNS record with a bad name. Unsupported Postfix versions pretend that the lookup failed when the result is invalid. Wietse

Re: mx fails due to typo on remote dns

2009-11-17 Thread Laurence Moughan
Ok , I upgraded to 2.6.5 - and still fails, eg Nov 17 10:42:21 obeml1 postfix/smtp[5444]: [ID 197553 mail.info] 6D12F239406: to=, relay=none, delay=40, delays=0.26/0/40/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=eurocommerce.ie type=MX: Host n

Re: mx fails due to typo on remote dns

2009-11-17 Thread Wietse Venema
Laurence Moughan: > Ok , > > I upgraded to 2.6.5 - and still fails, > Works for me. I suspect that your LOCAL dns server is making trouble. Wietse

Re: mx fails due to typo on remote dns

2009-11-17 Thread Wietse Venema
Wietse Venema: > Laurence Moughan: > > Ok , > > > > I upgraded to 2.6.5 - and still fails, > > > > Works for me. I suspect that your LOCAL dns server is making trouble. Logging: Nov 17 06:34:54 spike postfix/qmgr[6861]: 509F61F3EA7: from=, size=338, nrcpt=1 (queue active) Nov 17 06:34:54 sp

Re: Betr.: Re: Betr.: Re: Trim part of the header with header rewriting ?

2009-11-17 Thread Wietse Venema
Arjan Melein: > It's been a few days but i just ran into a little bump in the road.. It looks > like the ;1:1 actually changes depending on the number of recipients. > How would I change '/^RCPT\s+TO:(.*);1:1$/ RCPT TO:$1' into matching > 'domain.tld;#:#' and put the domain.tld back without t

Re: Betr.: Re: Betr.: Re: Trim part of the header with header rewriting ?

2009-11-17 Thread Arjan Melein
>>> Op 17-11-2009 om 12:48 is door Wietse Venema geschreven: > Arjan Melein: >> It's been a few days but i just ran into a little bump in the road.. It > looks like the ;1:1 actually changes depending on the number of recipients. >> How would I change '/^RCPT\s+TO:(.*);1:1$/ RCPT TO:$1' into

Re: Trim part of the header with header rewriting ?

2009-11-17 Thread Rakotomandimby Mihamina
11/13/2009 11:11 AM, Arjan Melein: First, Sorry for the top posting before. Client default puts replies on top. You are wrong. The cursor has to start blinking somewhere, it starts at the beginning. You have to make the effort to move it down. Secondly, you also MUST trim the message, as I did

How to intercept delivery errors?

2009-11-17 Thread Matthias Vill
Hi there, if I configure my /etc/aliases to read: test: |/bin/false, u...@external-server owner-test: u...@external-server I correctly receive E-Mail to test and owner test at u...@external-server, but the error-message which is generated by /bin/false is send back to the original sender. If I in

Re: How to intercept delivery errors?

2009-11-17 Thread Wietse Venema
Matthias Vill: > Hi there, > > if I configure my /etc/aliases to read: > test: |/bin/false, u...@external-server > owner-test: u...@external-server > > I correctly receive E-Mail to test and owner test at > u...@external-server, but the error-message which is generated by > /bin/false is send bac

per user transport

2009-11-17 Thread Guy
Hi, I'm going to be migrating users onto new back end servers and so need to enable per user transports. I know I need to change my mysql_transport_maps.cf query from this: query = SELECT transport FROM domains WHERE DomainName='%s' to something like: query = SELECT transport FROM members WHERE U

Re: How to intercept delivery errors?

2009-11-17 Thread Victor Duchovni
On Tue, Nov 17, 2009 at 09:39:53AM -0500, Wietse Venema wrote: > > if I configure my /etc/aliases to read: > > test: |/bin/false, u...@external-server > > owner-test: u...@external-server > > > > I correctly receive E-Mail to test and owner test at > > u...@external-server, but the error-message

Re: How to intercept delivery errors?

2009-11-17 Thread Wietse Venema
Victor Duchovni: > On Tue, Nov 17, 2009 at 09:39:53AM -0500, Wietse Venema wrote: > > > > if I configure my /etc/aliases to read: > > > test: |/bin/false, u...@external-server > > > owner-test: u...@external-server > > > > > > I correctly receive E-Mail to test and owner test at > > > u...@extern

Re: How to intercept delivery errors?

2009-11-17 Thread Victor Duchovni
On Tue, Nov 17, 2009 at 01:12:26PM -0500, Wietse Venema wrote: > > > Apparently, owner-foo works for email addresses but not commands. > > > That would be a bug. > > > > It is not easy to solve, since bounces are not sent by local(8), so > > we would need new a queue-file with "owner-test" as the

Re: How to intercept delivery errors?

2009-11-17 Thread Wietse Venema
Victor Duchovni: > On Tue, Nov 17, 2009 at 01:12:26PM -0500, Wietse Venema wrote: > > > > > Apparently, owner-foo works for email addresses but not commands. > > > > That would be a bug. > > > > > > It is not easy to solve, since bounces are not sent by local(8), so > > > we would need new a queu

Problem re-directing root's email

2009-11-17 Thread Nicholas Robinson
Hi I'm trying to re-direct my root email to my external email address. I altered the entry in /etc/aliases to root: n...@external-address.co.uk Ran newaliases, reloaded postfix and tried sending an email to root The email gets sent to r...@bxxx-hxxx.co.uk where bxxx-hxxx.co.uk is the d

Re: Problem re-directing root's email

2009-11-17 Thread Wietse Venema
Nicholas Robinson: > Hi > > I'm trying to re-direct my root email to my external email address. See: http://www.postfix.org/STANDARD_CONFIGURATION_README.html#some_local Wietse

Re: How to intercept delivery errors?

2009-11-17 Thread Matthias Vill
First of all thank you for the quick responses. Victor Duchovni wrote: > On Tue, Nov 17, 2009 at 09:39:53AM -0500, Wietse Venema wrote: > >>> if I configure my /etc/aliases to read: >>> test: |/bin/false, u...@external-server >>> owner-test: u...@external-server >>> >>> I correctly receive E-Ma

Re: Problem re-directing root's email

2009-11-17 Thread LuKreme
On 17-Nov-2009, at 15:56, Nicholas Robinson wrote: > I altered the entry in /etc/aliases to /etc/postfix/aliases -- Han : This is not going to work. Luke: Why didn't you say so before? Han : I did say so before!

Re: Problem re-directing root's email

2009-11-17 Thread /dev/rob0
On Tue, Nov 17, 2009 at 07:26:34PM -0700, LuKreme wrote: > On 17-Nov-2009, at 15:56, Nicholas Robinson wrote: > > I altered the entry in /etc/aliases to > > /etc/postfix/aliases Why do you suggest this? Typically the default value is: "alias_maps = hash:/etc/aliases, nis:mail.aliases" -- Off

How to restrict domain in postfix ?

2009-11-17 Thread J. Bakshi
Dear list, My postfix server is running on a internal test server and we use the mail server to test the different services which has mail sending capabilities. I like to tweak the postfix so that it only and only send emails to a specific domain and not anywhere else. Is it possible to implement

Re: Problem re-directing root's email

2009-11-17 Thread LuKreme
On 17-Nov-2009, at 19:53, /dev/rob0 wrote: > On Tue, Nov 17, 2009 at 07:26:34PM -0700, LuKreme wrote: >> On 17-Nov-2009, at 15:56, Nicholas Robinson wrote: >>> I altered the entry in /etc/aliases to >> >> /etc/postfix/aliases > > Why do you suggest this? Typically the default value is: > "alias

Re: How to restrict domain in postfix ?

2009-11-17 Thread Sahil Tandon
On Wed, 18 Nov 2009, J. Bakshi wrote: > My postfix server is running on a internal test server and we use the > mail server to test the different services which has mail sending > capabilities. I like to tweak the postfix so that it only and only > send emails to a specific domain and not anywhere

Re: How to restrict domain in postfix ?

2009-11-17 Thread J. Bakshi
Sahil Tandon wrote: > On Wed, 18 Nov 2009, J. Bakshi wrote: > > >> My postfix server is running on a internal test server and we use the >> mail server to test the different services which has mail sending >> capabilities. I like to tweak the postfix so that it only and only >> send emails to a

Re: Problem re-directing root's email

2009-11-17 Thread Nicholas Robinson
For a while, for Fedora at least, /etc/postfix/aliases was the default location - or there was a link to /etc/aliases in /etc/postfix (or vice versa!). However, it returned to /etc/aliases some time ago. Presumably, some distros still put it in /etc/postfix and others in /etc? Thank you for all th

Re: Problem re-directing root's email

2009-11-17 Thread Sahil Tandon
On Tue, 17 Nov 2009, LuKreme wrote: > On 17-Nov-2009, at 19:53, /dev/rob0 wrote: > > > On Tue, Nov 17, 2009 at 07:26:34PM -0700, LuKreme wrote: > >> On 17-Nov-2009, at 15:56, Nicholas Robinson wrote: > >>> I altered the entry in /etc/aliases to > >> > >> /etc/postfix/aliases > > > > Why do you

Re: How to restrict domain in postfix ?

2009-11-17 Thread Eero Volotinen
J. Bakshi wrote: Thanks to point it out :-) I am looking into it. Is there any other option so that I can only define the domain name with the proper keyword in main.cf and postfix send mails to only that domain ? Err.. why? I think access is nicest way to do it. -- Eero

Re: How to restrict domain in postfix ?

2009-11-17 Thread J. Bakshi
Eero Volotinen wrote: > J. Bakshi wrote: > >> Thanks to point it out :-) I am looking into it. Is there any other >> option so that I can only define the domain name with the proper keyword >> in main.cf and postfix send mails to only that domain ? > > Err.. why? I think access is nicest way to do

Re: How to restrict domain in postfix ?

2009-11-17 Thread Eero Volotinen
J. Bakshi wrote: Eero Volotinen wrote: J. Bakshi wrote: Thanks to point it out :-) I am looking into it. Is there any other option so that I can only define the domain name with the proper keyword in main.cf and postfix send mails to only that domain ? Err.. why? I think access is nicest way

Attempt MX, fallback to relay in case of error only

2009-11-17 Thread 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 to be retried using a paid SMTP

Re: How to restrict domain in postfix ?

2009-11-17 Thread Eero Volotinen
J. Bakshi wrote: Eero Volotinen wrote: J. Bakshi wrote: Eero Volotinen wrote: J. Bakshi wrote: Thanks to point it out :-) I am looking into it. Is there any other option so that I can only define the domain name with the proper keyword in main.cf and postfix send mails to only that domain ?

Re: How to restrict domain in postfix ?

2009-11-17 Thread Eero Volotinen
Eero Volotinen wrote: Please post questions also to mailinglist, since I am your personal helpdesk. Not personal helpdesk, sorry. -- Eero

Re: How to restrict domain in postfix ?

2009-11-17 Thread J. Bakshi
Eero Volotinen wrote: > J. Bakshi wrote: >> Eero Volotinen wrote: >>> J. Bakshi wrote: >>> Thanks to point it out :-) I am looking into it. Is there any other option so that I can only define the domain name with the proper keyword in main.cf and postfix send mails to only that

Re: How to restrict domain in postfix ?

2009-11-17 Thread J. Bakshi
Eero Volotinen wrote: > J. Bakshi wrote: >> Eero Volotinen wrote: >>> J. Bakshi wrote: >>> Thanks to point it out :-) I am looking into it. Is there any other option so that I can only define the domain name with the proper keyword in main.cf and postfix send mails to only that

Re: How to restrict domain in postfix ?

2009-11-17 Thread Eero Volotinen
smtpd_recipient_restrictions = check_recipient_access pcre:/etc/postfix/access.pcre, reject see also: http://www.postfix.org/postconf.5.html#smtpd_client_restrictions I think smtpd_recipient_restrictions applies only server to server connections. -- Eero

Re: Problem re-directing root's email

2009-11-17 Thread LuKreme
On 17-Nov-2009, at 20:58, Sahil Tandon wrote: > On Tue, 17 Nov 2009, LuKreme wrote: >> My aliases has always been at /etc/postfix/aliases > > Now *that* is atypical. No, it's really not. Anyone who's been using postfix for a while is quite likely to have their alias file in the postfix folder. T

Re: Problem re-directing root's email

2009-11-17 Thread LuKreme
On 17-Nov-2009, at 23:46, LuKreme wrote: > I first setup postfix in … 1999? 2000? Erm, confusion reins. It was late in 2002 with, iirc, a prerelease 2.x -- 'Are you Death?' IT'S THE SCYTHE, ISN'T IT? PEOPLE ALWAYS NOTICE THE SCYTHE. --The Fifth Elephant

Re: Problem re-directing root's email

2009-11-17 Thread Ansgar Wiechers
On 2009-11-17 LuKreme wrote: > On 17-Nov-2009, at 20:58, Sahil Tandon wrote: >> On Tue, 17 Nov 2009, LuKreme wrote: >>> My aliases has always been at /etc/postfix/aliases >> >> Now *that* is atypical. > > No, it's really not. Anyone who's been using postfix for a while is > quite likely to have t

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

2009-11-17 Thread ram
On Tue, 2009-11-17 at 20:55 -0800, cont...@rusanu.com wrote: > 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 originat

Re: How to restrict domain in postfix ?

2009-11-17 Thread Magnus Bäck
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, this is wrong. As per the documenta

Re: How to restrict domain in postfix ?

2009-11-17 Thread Magnus Bäck
On Wed, November 18, 2009 7:09 am, Eero Volotinen said: > > smtpd_recipient_restrictions = check_recipient_access > > pcre:/etc/postfix/access.pcre, reject > > see also: > > http://www.postfix.org/postconf.5.html#smtpd_client_restrictions > > I think smtpd_recipient_restrictions applies only serve