Re: Postfix configuration optimization?

2012-06-07 Thread DTNX Postmaster
On Jun 8, 2012, at 02:58, john wrote: > Are there any tools that would help in optimizing/tweaking the Postfix > configuration? I have found that reading (and understanding) the Postfix documentation is one of the best tools available, followed by trusting the defaults, and reading the logs.

Postfix configuration optimization?

2012-06-07 Thread john
Are there any tools that would help in optimizing/tweaking the Postfix configuration?

Re: Make smtpd/Postscreen compatible with load balancers

2012-06-07 Thread Wietse Venema
Willy Tarreau: > > >Regardless of command format details, if the proxy prepends a command > > >to the client's SMTP stream, then postscreen must use unbuffered > > >I/O to read that command. If buffering were turned on, the buffering > > >layer could read past the proxy's and eat up part of the >

Re: Multiple delays based on different domains.

2012-06-07 Thread Jean-Francois Couture
Thank you. I will build my #2 choice then. J-F Couture -Message d'origine- From: Wietse Venema Sent: Thursday, June 07, 2012 2:20 PM To: Postfix users Subject: Re: Multiple delays based on different domains. Jean-Francois Couture: #2 Is (and correct me if I missunderstood how this w

Re: Multiple delays based on different domains.

2012-06-07 Thread Wietse Venema
Jean-Francois Couture: > #2 Is (and correct me if I missunderstood how this work): > > In master.cf, setup a second transport name using the smtp transport (ex.): > > proxymap unix - - n - - proxymap > proxywrite unix - - n - 1 proxyma

Multiple delays based on different domains.

2012-06-07 Thread Jean-Francois Couture
** Sorry if double posting, I think I had the wrong list ** Hi, I need to setup a mail server that will use delays based on domain names. For now, I have a default setup with a transport_map with the domains I need to send emails to. (Those domain are reached by our VPNs). I need to send emails

Re: smtp_fallback_relay localhost

2012-06-07 Thread Wietse Venema
Patrick Ben Koetter: > Use DNS (round robin) to provide more than one IP for server1.tld or cluster > the ip. Georg Sch?nweger: > Does this solve the problem? if IP1 is down will postfix retry to send > via IP2? Or will postfix just defer the delivery? If so then > smtp_fallback_relay seems to me

Re: smtp_fallback_relay localhost

2012-06-07 Thread Georg Schönweger
Am 07.06.2012 09:58, schrieb Patrick Ben Koetter: > * Georg Schönweger : >> Hi, >> >> On our postfix server we use: >> relayhost = [server1.tld]:587 >> >> How can i tell postfix to relay mails localy if server1.tld is down? I >> thought this should be possible with "smtp_fallback_relay"; >> smtp_fa

Re: Multi-recipient bounce 550 5.5.3

2012-06-07 Thread Marko Weber
Am 07.06.2012 14:40, schrieb Ralf Hildebrandt: * Marko Weber : Hello, i try to send mails to postmaster@ + abuse@ to the mailserver i work on. I get these log messages on the server when mails arrive for postmaster/abuse: Multi-recipient bounce 550 5.5.3 Jun 7 10:14:01 mail postfix/lmtp[18

Re: mynetworks support for ipv6 link local (fe80) hosts

2012-06-07 Thread Derek Atkins
Wietse Venema writes: > Derek Atkins: >> Wietse Venema writes: >> >> > For the record: mynetworks has always supported net/mask notation. >> >> Of course, but that wasn't what I was talking about, and it never was. >> I was talking about "permit_mynetworks" working properly with an ipv6 >> lin

Re: Postfix mail file permissions

2012-06-07 Thread Noel Jones
On 6/7/2012 7:49 AM, Nicolae Ghimbovschi wrote: > The problem is that the tool we have doesn't have access to the mail > files from the deferred queue. > It's main purpose is deferred queue management. > The emails we work with have special headers which are processed by that tool. > > As you said

Multiple delays based on different domains.

2012-06-07 Thread Jean-Francois Couture
Hi, I need to setup a mail server that will use delays based on domain names. For now, I have a default setup with a transport_map with the domains I need to send emails to. (Those domain are reached by our VPNs). I need to send emails to those domains with a 0s delay and all other emails not i

Re: Virtual Users PostgreSQL Injection

2012-06-07 Thread Schiz0
On Thu, Jun 7, 2012 at 9:58 AM, Wietse Venema wrote: > Schiz0: >> Hey list, >> >> I have a setup with postfix-2.9.3,1 using virtual users from a >> postgresql database. A thought suddenly occurred to me, what if >> someone tries to send email to a user like this: '; drop table >> mailbox;' >> Does

Re: Virtual Users PostgreSQL Injection

2012-06-07 Thread Wietse Venema
Schiz0: > Hey list, > > I have a setup with postfix-2.9.3,1 using virtual users from a > postgresql database. A thought suddenly occurred to me, what if > someone tries to send email to a user like this: '; drop table > mailbox;' > Does postfix properly escape fields when querying a sql database?

Re: Virtual Users PostgreSQL Injection

2012-06-07 Thread Bill Cole
On 7 Jun 2012, at 9:33, Schiz0 wrote: Hey list, I have a setup with postfix-2.9.3,1 using virtual users from a postgresql database. A thought suddenly occurred to me, what if someone tries to send email to a user like this: '; drop table mailbox;' Does postfix properly escape fields when queryi

Virtual Users PostgreSQL Injection

2012-06-07 Thread Schiz0
Hey list, I have a setup with postfix-2.9.3,1 using virtual users from a postgresql database. A thought suddenly occurred to me, what if someone tries to send email to a user like this: '; drop table mailbox;' Does postfix properly escape fields when querying a sql database? My virtual-users confi

Re: Queue Id Collision

2012-06-07 Thread Nico Angenon
Hello, I've upgraded to postfix 2.9.1, put "enable_long_queue_ids = yes" in my /etc/postfix/main.cf file, and restarted postfix... Queue Id seems to be longger and uses all letters in the log file... Wait & see... Thanks for all. Nico -Message d'origine- From: Wietse Venema Sent

Re: Postfix mail file permissions

2012-06-07 Thread Nicolae Ghimbovschi
The problem is that the tool we have doesn't have access to the mail files from the deferred queue. It's main purpose is deferred queue management. The emails we work with have special headers which are processed by that tool. As you said that is not supported. Anyway, the current backup plan is

RE: question concerning content filter and receive_override_options=no_address_mappings

2012-06-07 Thread Peter Sørensen
Thanks was'nt aware of this . I will rewrite the script using this. Peter Fra: owner-postfix-us...@postfix.org [owner-postfix-us...@postfix.org] På vegne af Wietse Venema [wie...@porcupine.org] Sendt: 7. juni 2012 12:55 Til: Postfix users Emne: Re: questio

Re: Multi-recipient bounce 550 5.5.3

2012-06-07 Thread Ralf Hildebrandt
* Marko Weber : > > Hello, > i try to send mails to postmaster@ + abuse@ to the mailserver i work > on. > I get these log messages on the server when mails arrive for > postmaster/abuse: > > Multi-recipient bounce 550 5.5.3 > > Jun 7 10:14:01 mail postfix/lmtp[18106]: C976F11C688: > to=, > rela

Re: Queue Id Collision

2012-06-07 Thread Wietse Venema
Nico Angenon: > Every thing goes right execpt that it happens ?Queue ID collision? : > for exemple in my logs : The Queue ID is not reused before a message is removed from the queue. Therefore there are no collisions. If you need unique queue IDs, use Postfix 2.8 long queue IDs Wietse

Re: Queue Id Collision

2012-06-07 Thread Ralf Hildebrandt
* Nico Angenon : > Hello, > > I use Postfix 2.5.5 on a linux debian box and i'm trying to make some > statistics for sasl authenticated user... > the goal is to show them how many connexions to the server they have been > made, how many mails they have sent, and show them the detected "from" a

Re: Queue Id Collision

2012-06-07 Thread Reindl Harald
Am 07.06.2012 14:26, schrieb Nico Angenon: > I use Postfix 2.5.5 > Every thing goes right execpt that it happens “Queue ID collision” > Is there any way to prevent this? not with you terrible outdated version recent is 2.9.3 enable_long_queue_ids = yes http://www.postfix.org/postconf.5.html

Queue Id Collision

2012-06-07 Thread Nico Angenon
Hello, I use Postfix 2.5.5 on a linux debian box and i'm trying to make some statistics for sasl authenticated user... the goal is to show them how many connexions to the server they have been made, how many mails they have sent, and show them the detected "from" and "to" addresses... My sear

Re: Postfix mail file permissions

2012-06-07 Thread Wietse Venema
Wietse Venema: > Wietse: > > Configurations that allow non-Postfix programs to manipulate > > Postfix queue files are NOT SUPPORTED. There is NO SUPPORT > > for making such changes. > > Nicolae Ghimbovschi: > > Yeah, I see that. The file permissions are hardcoded. > > That is why I tried to change

Re: Postfix mail file permissions

2012-06-07 Thread Nicolae Ghimbovschi
I understand, we used to have version 2.0.x and there we accomplished that by changing the default file permission in Postfix's code. It looks like in 2.9.x the same approach does not work. Thanks ! On Thu, Jun 7, 2012 at 2:01 PM, Wietse Venema wrote: > Wietse: >> Configurations that allow non

Re: Postfix mail file permissions

2012-06-07 Thread Wietse Venema
Wietse: > Configurations that allow non-Postfix programs to manipulate > Postfix queue files are NOT SUPPORTED. There is NO SUPPORT > for making such changes. Nicolae Ghimbovschi: > Yeah, I see that. The file permissions are hardcoded. > That is why I tried to change Postfix's code. > > I tried c

Re: Postfix mail file permissions

2012-06-07 Thread Nicolae Ghimbovschi
Yeah, I see that. The file permissions are hardcoded. That is why I tried to change Postfix's code. I tried changing those, but still somehow it makes the file non readable for group members, but the read and write are left. Hope to have some hint from a Postfix dev. Thanks ! On Thu, Jun 7, 201

Re: question concerning content filter and receive_override_options=no_address_mappings

2012-06-07 Thread Wietse Venema
Peter S?rensen: > Hi > > I have a policy server restricting access to specific lists. If a > user is accepted the policy server return OK status > to postfix. The members on the list are found through virtual alias > and gets expanded. > > I would like to put a content filter after this , that w

Re: Postfix mail file permissions

2012-06-07 Thread Wietse Venema
Nicolae Ghimbovschi: > Hi, > > I'm using Postfix 2.9.3 on a RedHat machine. > > I'm trying to make Postfix mail files, from the spool/deferred dir, > readable by postfix group users. Configurations that allow non-Postfix programs to manipulate Postfix queue files are NOT SUPPORTED. There is NO

Postfix mail file permissions

2012-06-07 Thread Nicolae Ghimbovschi
Hi, I'm using Postfix 2.9.3 on a RedHat machine. I'm trying to make Postfix mail files, from the spool/deferred dir, readable by postfix group users. By default they are readable only by the postfix user, 0700. For instance: ls -la /opt/postfix/spool/deferred/5/5C8EA46029F -rwx-- 1 postfix

Re: Disable outbound smtp pipelining?

2012-06-07 Thread Jerry
On Wed, 06 Jun 2012 20:40:01 +0200 Benny Pedersen articulated: >Den 2012-06-06 05:46, Curtis skrev: > >[snip] >> I better stop asking questions now since I might be getting ahead of >> my self if my assumption about >> smtpd_discard_ehlo_keyword_address_maps >> does not actually apply to outbound

Multi-recipient bounce 550 5.5.3

2012-06-07 Thread Marko Weber
Hello, i try to send mails to postmaster@ + abuse@ to the mailserver i work on. I get these log messages on the server when mails arrive for postmaster/abuse: Multi-recipient bounce 550 5.5.3 Jun 7 10:14:01 mail postfix/lmtp[18106]: C976F11C688: to=, relay=mail.test.de[/var/run/dspam/dspam

Re: Postfix Question

2012-06-07 Thread DTNX Postmaster
On Jun 7, 2012, at 08:09, Feel Zhou wrote: > My purpose is : > > Use ServerA, try it best, send email to hotmail, > > if working, very good, if not (such as reject, defer ), then give the email > to ServerB. > > Do not use ServerB all the time. Do not resend mail that was rejected via anothe

Re: smtp_fallback_relay localhost

2012-06-07 Thread Patrick Ben Koetter
* Georg Schönweger : > Hi, > > On our postfix server we use: > relayhost = [server1.tld]:587 > > How can i tell postfix to relay mails localy if server1.tld is down? I > thought this should be possible with "smtp_fallback_relay"; > smtp_fallback_relay = [localhost] > but then i see a "deferred (m

smtp_fallback_relay localhost

2012-06-07 Thread Georg Schönweger
Hi, On our postfix server we use: relayhost = [server1.tld]:587 How can i tell postfix to relay mails localy if server1.tld is down? I thought this should be possible with "smtp_fallback_relay"; smtp_fallback_relay = [localhost] but then i see a "deferred (mail for localhost loops back to myself)