Re: how to create a filter in amavisd

2009-03-20 Thread deconya
Hi im using smtp to send but filtering all with amavisd. The solution of content-filter needs to create in main.cf or in master.cf? Thanks On Fri, Mar 20, 2009 at 12:08 AM, mouss mo...@ml.netoyen.net wrote: deconya a écrit : Hi Im configuring a server with postfix amavisd and

Re: Performance tuning

2009-03-20 Thread Costin Guşă
On Thu, Mar 19, 2009 at 10:30 PM, Wietse Venema wie...@porcupine.org wrote: Brandon Hilkert: We send out a pretty volume of emails right now using a combination of SQL and IIS SMTP. We get rates now of about 5,000/min. We're looking to not only improve the rates, but incorporate DKIM/Domainkey

Re: Performance tuning

2009-03-20 Thread Wietse Venema
Brandon Hilkert: What's the best way to clearly identify that syslog is the issue? Look in my reply. There is an example. Wietse - Original Message - From: Victor Duchovni victor.ducho...@morganstanley.com To: postfix-users@postfix.org Sent: Thursday, March 19, 2009 11:12

Re: Performance tuning

2009-03-20 Thread Ralf Hildebrandt
* Brandon Hilkert bhilk...@vt.edu: We send out a pretty volume of emails right now using a combination of SQL and IIS SMTP. We get rates now of about 5,000/min. We're looking to not only improve the rates, but incorporate DKIM/Domainkey signing into the process. The choice has been made to go

Re: Performance tuning

2009-03-20 Thread Rainer Frey (Inxmail GmbH)
On Friday 20 March 2009 02:52:42 Brandon Hilkert wrote: As I mentioned, we're using the XFS system for the queue, does that provide any additional benefit, or would ext3 perform the same? Keep in mind, we will be dealing with 1,000,000 piece mailouts during a session. My findings were that

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
Is a simple ext3 partition usually the recommend file system? - Original Message - From: Rainer Frey (Inxmail GmbH) rainer.f...@inxmail.de To: postfix-users@postfix.org Sent: Friday, March 20, 2009 6:54 AM Subject: Re: Performance tuning On Friday 20 March 2009 02:52:42 Brandon

Re: Performance tuning

2009-03-20 Thread Ralf Hildebrandt
* Brandon Hilkert bhilk...@vt.edu: Is a simple ext3 partition usually the recommend file system? Yes -- Ralf Hildebrandt Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.computerbeschimpfung.de C makes it easy to shoot yourself in the foot. C++ makes it

Re: Performance tuning

2009-03-20 Thread Rainer Frey (Inxmail GmbH)
On Friday 20 March 2009 12:04:22 Brandon Hilkert wrote: Is a simple ext3 partition usually the recommend file system? Please do not top post. We use ext3 to have simple, repeatable, clear server setups without surprises or pitfalls. Performance is good enough for our needs, so I never actually

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
What's the best way to clearly identify that syslog is the issue? - Original Message - From: Victor Duchovni victor.ducho...@morganstanley.com To: postfix-users@postfix.org Sent: Thursday, March 19, 2009 11:12 PM Subject: Re: Performance tuning On Thu, Mar 19, 2009 at 09:52:42PM

Re: Looking for Anti-spam setting: local username/external IP

2009-03-20 Thread Peter Blair
On Thu, Mar 19, 2009 at 3:28 PM, David A. Gershman dagershman_...@dagertech.net wrote: from an external source.  I'm trying to see if there is a setting in master.cf (or other .cf file) which will reject any email from an external IP (other than my own) *and* is claiming to be from a local

Re: whitelist from spamhaus

2009-03-20 Thread Wietse Venema
Victor Duchovni: On Thu, Mar 19, 2009 at 11:58:52PM +0100, mouss wrote: I would suggest separating relay control from other checks. something like smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated This has been proposed before.

Re: Looking for Anti-spam setting: local username/external IP

2009-03-20 Thread David A. Gershman
Yeah, Thought of that a little after mailing. Oh well, I guess I need to keep my efforts in later defenses (spamassassin). Thanks. On Thu, Mar 19, 2009 at 3:28 PM, David A. Gershman dagershman_...@dagertech.net wrote: from an external source.  I'm trying to see if there is a setting in

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
- Original Message - From: Ralf Hildebrandt ralf.hildebra...@charite.de To: postfix-users@postfix.org Sent: Friday, March 20, 2009 6:52 AM Subject: Re: Performance tuning * Brandon Hilkert bhilk...@vt.edu: We send out a pretty volume of emails right now using a combination of SQL

Postfix and virtual users with additional_condition

2009-03-20 Thread Sebastian Chociwski
Hello, I'm trying to make additional conditions work on my system : Suse 11.1 , postfix 2.5.5 and mysql 5.0.67. Forwarding and delivering mails to V_USERS works fine for me but I need to make additional condition so I make new column mailactiv with default '1'. If the mailactiv is set to '1' mail

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
- Original Message - From: Brandon Hilkert bhilk...@vt.edu To: postfix-users@postfix.org Sent: Friday, March 20, 2009 10:48 AM Subject: Re: Performance tuning - Original Message - From: Ralf Hildebrandt ralf.hildebra...@charite.de To: postfix-users@postfix.org Sent: Friday,

Re: VERP Bounce Intercept

2009-03-20 Thread Chris Dos
Noel Jones wrote: Chris Dos wrote: Noel Jones wrote: It looks like I want to check for RCPT TO:VERP_Address So I ran this check against the regexp table using postmap: postmap -q RCPT TO:chris+no-one-home=chrisdos@chrisdos.com regexp:header_checks.regexp and it came back with a result

Re: Performance tuning

2009-03-20 Thread Noel Jones
Brandon Hilkert wrote: I also put the queue directory back on an ext3 partition and the rates went up by about a factor of two. Also, by default the syslog messages were already set with -/var/log/mail.log. I disabled mail logging all together and found no change in rates. My disk is

Re: Performance tuning

2009-03-20 Thread Wietse Venema
Brandon Hilkert: Sorry if this is a stupid question, but how do I go about this. I tried: mkdir /ram mount -t ramfs none /ram and when I send a mail, postfix says there's not enough space in the queue. Should I be doing it a different way? Postfix requires that the amount of space is

Re: VERP Bounce Intercept

2009-03-20 Thread Noel Jones
Chris Dos wrote: Noel Jones wrote: Chris Dos wrote: Noel Jones wrote: It looks like I want to check for RCPT TO:VERP_Address So I ran this check against the regexp table using postmap: postmap -q RCPT TO:chris+no-one-home=chrisdos@chrisdos.com regexp:header_checks.regexp and it came back

Re: VERP Bounce Intercept

2009-03-20 Thread Chris Dos
Noel Jones wrote: I was was reading the header_checks won't work on bounced mail. I setup a regexp check_recipient_access map. This is the regexp file verp_redirect.regexp : /^RCPT TO:.+\+.+\=...@.+\..+$/ REDIRECTverpbounce It's still not working. Here is the postconf -n:

Re: Postfix and virtual users with additional_condition

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 03:59:05PM +0100, Sebastian Chociwski wrote: query = SELECT email FROM users WHERE email='%s' AND mailactiv='1' Is the mailactiv column integer-valued or string-valued? NOT WORK. You really should report output from tests with postmap -q. NOT WORK is

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
- Original Message - From: Wietse Venema wie...@porcupine.org To: Brandon Hilkert bhilk...@vt.edu Cc: postfix-users@postfix.org Sent: Friday, March 20, 2009 11:30 AM Subject: Re: Performance tuning Brandon Hilkert: Sorry if this is a stupid question, but how do I go about this. I

Re: VERP Bounce Intercept

2009-03-20 Thread Noel Jones
Chris Dos wrote: Well, pointing the gun the wrong way is differently something that I don't want to be doing. But in the case, I'm confused. I'm having mail-dr send out to another server, mail.chrisdos.com, on the internet. Mail-DR is a separate mail server all together on a different

rw_loop: leaving rw loop, no progress

2009-03-20 Thread Mark Martinec
-- Forwarded Message -- Subject: Re: [AMaViS-user] rw_loop: leaving rw loop, no progress Date: Friday 20 March 2009 From: Mark Martinec mark.martinec+ama...@ijs.si To: amavis-u...@lists.sourceforge.net Ivan, This is log in attached files Thanks, interesting and strange. I'll

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
- Original Message - From: Wietse Venema wie...@porcupine.org To: Brandon Hilkert bhilk...@vt.edu Cc: Wietse Venema wie...@porcupine.org; postfix-users@postfix.org Sent: Friday, March 20, 2009 12:45 PM Subject: Re: Performance tuning Brandon Hilkert: and when I send a mail,

Re: Performance tuning

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 01:01:55PM -0400, Brandon Hilkert wrote: I've been running everything from scripts, hoping to zero in on the bottleneck. How many messages are you sending in parallel in the injector scripts? SMTP is a high latency half-duplex protocol, and a single injector will never

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
- Original Message - From: Victor Duchovni victor.ducho...@morganstanley.com To: postfix-users@postfix.org Sent: Friday, March 20, 2009 1:20 PM Subject: Re: Performance tuning On Fri, Mar 20, 2009 at 01:01:55PM -0400, Brandon Hilkert wrote: I've been running everything from

Re: Performance tuning

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 01:32:26PM -0400, Brandon Hilkert wrote: - Original Message - From: Victor Duchovni victor.ducho...@morganstanley.com To: postfix-users@postfix.org Sent: Friday, March 20, 2009 1:20 PM Subject: Re: Performance tuning On Fri, Mar 20, 2009 at 01:01:55PM

Re: VERP Bounce Intercept

2009-03-20 Thread Chris Dos
Noel Jones wrote: Chris Dos wrote: Well, pointing the gun the wrong way is differently something that I don't want to be doing. But in the case, I'm confused. I'm having mail-dr send out to another server, mail.chrisdos.com, on the internet. Mail-DR is a separate mail server all together

Issue with smtpd_recipient_restrictions

2009-03-20 Thread Post Freak
Hello, I need to only allow access to known addresses, and found that setting up smtpd_recipient_restrictions in main.cf would reject unauthorized recipients. I have this setting in main.cf: smtpd_recipient_restrictions = hash:/etc/postfix/allowed_users, reject_unauth_destination I ran

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 11:13:21AM -0700, Post Freak wrote: I need to only allow access to known addresses, and found that setting up smtpd_recipient_restrictions in main.cf would reject unauthorized recipients. I have this setting in main.cf: smtpd_recipient_restrictions =

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Post Freak
Hello, Thank you for the configuration, but I am still able to send email to addresses not listed in allowed_users. Here is my new config: smtpd_recipient_restrictions = reject_unauth_destination, check_recipient_access hash:/etc/postfix/allowed_users, reject I've restarted postfix, but I can

Re: VERP Bounce Intercept

2009-03-20 Thread Chris Dos
Chris Dos wrote: Noel Jones wrote: Okay, since the e-mail never finishes sending because the user is unknown on the other end and it is rejected right away, is there another way to do this. The whole point of this exercise for me is to just intercept a bounce back and process it internally

Re: VERP Bounce Intercept

2009-03-20 Thread Chris Dos
-- Chris Dos Senior Engineer Cell: 303-520-1821 Chris Dos wrote: Chris Dos wrote: Noel Jones wrote: Okay, since the e-mail never finishes sending because the user is unknown on the other end and it is rejected right away, is there another way to do this. The whole point of this

Re: VERP Bounce Intercept

2009-03-20 Thread Chris Dos
Noel Jones wrote: Okay, since the e-mail never finishes sending because the user is unknown on the other end and it is rejected right away, is there another way to do this. The whole point of this exercise for me is to just intercept a bounce back and process it internally instead of

Re: Performance tuning

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 11:27:27AM -0700, J Sloan wrote: For what it's worth, we've found ext3 to be far too slow for our needs. The best setup we've found is reiserfs, mounted with noatime and notail options - Lets not start file system wars in this thread. The OP's problem is largely

Re: Performance tuning

2009-03-20 Thread J Sloan
For what it's worth, we've found ext3 to be far too slow for our needs. The best setup we've found is reiserfs, mounted with noatime and notail options - Joe Brandon Hilkert wrote: - Original Message - From: Ralf Hildebrandt ralf.hildebra...@charite.de To: postfix-users@postfix.org

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 11:39:05AM -0700, Post Freak wrote: Thank you for the configuration, but I am still able to send email to addresses not listed in allowed_users. Here is my new config: smtpd_recipient_restrictions = reject_unauth_destination, check_recipient_access

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Post Freak
Hello, Yes, postconf did respond with one line and 3 restrictions. Here are the results: [r...@myhost postfix]# postconf smtpd_recipient_restrictions smtpd_recipient_restrictions = reject_unauth_destination, check_recipient_access hash:/etc/postfix/allowed_users, reject Thanks!

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 12:00:25PM -0700, Post Freak wrote: Hello, Yes, postconf did respond with one line and 3 restrictions. Here are the results: [r...@myhost postfix]# postconf smtpd_recipient_restrictions smtpd_recipient_restrictions = reject_unauth_destination,

Re: VERP Bounce Intercept

2009-03-20 Thread Duane Hill
On Fri, 20 Mar 2009, Chris Dos wrote: Chris Dos wrote: Chris Dos wrote: Noel Jones wrote: Okay, since the e-mail never finishes sending because the user is unknown on the other end and it is rejected right away, is there another way to do this. The whole point of this exercise for me is to

Re: Issue with pipe mail to script

2009-03-20 Thread Simon
On Fri, Mar 20, 2009 at 11:49 AM, mouss mo...@ml.netoyen.net wrote: That's possible. please do what I told you. if you did and you still have a problem, feel free to ask. but it's annoying for us to help fix problems that are known and for which the solution is as easy as to follow well

Re: Postfix and virtual users with additional_condition

2009-03-20 Thread Sebastian Chociwski
OH sorry for that , heres more information: Activmail is integer. I checked the varchar mail column with default 'y' and got : query = SELECT email FROM users WHERE email='%s' AND mail='y' serwersuse111:~ # postmap -q sebastian...@example.pl

Re: Postfix and virtual users with additional_condition

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 08:19:42PM +0100, Sebastian Chociwski wrote: OH sorry for that , heres more information: Activmail is integer. Then the correct SQL query syntax is: activmail=1 NOT activmail='1' This is basic SQL, not Postfix. -- Viktor. Disclaimer:

Move queue to RAMFS

2009-03-20 Thread Brandon Hilkert
I'm trying to get my queue to ramfs. I mounted a volume. When I send mail to it, it tells me there's insufficient storage. I have set: message_size_limit = 0 What do I need to do to get it to accept mail?

Re: VERP Bounce Intercept

2009-03-20 Thread Chris Dos
Victor Duchovni wrote: On Fri, Mar 20, 2009 at 07:09:29PM +, Duane Hill wrote: Though now I'm getting this error after sending bounce to pipe: Mar 20 12:41:54 mail-dr postfix/pipe[10163]: warning: unexpected attribute nrequest from bounce socket (expecting: flags) Mar 20 12:41:54

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Post Freak
I made the syslog_name = postfix-test change, and pasted the contents below. The postfr...@gmail.com isn't specified in allowed_users, but postfr...@yahoo is. Also, where do I remove smtpd_access_maps? I don't see that setting in main.cf. /var/log/maillog: Mar 20 13:43:37 slc-monitor1

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 12:45:50PM -0700, Post Freak wrote: I made the syslog_name = postfix-test change, and pasted the contents below. The postfr...@gmail.com isn't specified in allowed_users, but postfr...@yahoo is. Also, where do I remove smtpd_access_maps? I don't see that setting in

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Post Freak
Thanks for the feedback. I told the client the maximal_backoff_time and maximal_queue_lifetime settings were way too high, and could cause issues, but they didn't care. How I make sure the master.cf doesn't override the recipient restrictions? Here's everything from the maillog after I send

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Sahil Tandon
On Mar 20, 2009, at 4:23 PM, Post Freak postfr...@yahoo.com wrote: Thanks for the feedback. I told the client the maximal_backoff_time and maximal_queue_lifetime settings were way too high, and could cause issues, but they didn't care. How I make sure the master.cf doesn't override the

Re: Move queue to RAMFS

2009-03-20 Thread Terry Carmen
Brandon Hilkert wrote: I'm trying to get my queue to ramfs. I mounted a volume. When I send mail to it, it tells me there's insufficient storage. Not sure about the error, but in general RAMFS sounds like a bad idea for a number of reasons including the ability to crash your machine if it

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Post Freak
Hello Sahil, I'm not as concerned about the locally delivered mail. My main concern is I can email recipients outside the network even though I have specified the restriction. Thank you. From: Sahil Tandon sa...@tandon.net To: Post Freak postfr...@yahoo.com

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Sahil Tandon
On Mar 20, 2009, at 4:41 PM, Post Freak postfr...@yahoo.com wrote: Hello Sahil, I'm not as concerned about the locally delivered mail. My main concern is I can email recipients outside the network even though I have specified the restriction. I said locally SUBMITTED. Not locally

Fw: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Post Freak
Sorry, I did not CC postfix-users... - Forwarded Message From: Post Freak postfr...@yahoo.com To: Sahil Tandon sa...@tandon.net Sent: Friday, March 20, 2009 3:50:09 PM Subject: Re: Issue with smtpd_recipient_restrictions AH And the light comes on! Thank you very much for the

Re: Issue with smtpd_recipient_restrictions

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 01:41:22PM -0700, Post Freak wrote: I'm not as concerned about the locally delivered mail. My main concern is I can email recipients outside the network even though I have specified the restriction. The restriction is an *SMTP server* restriction and cannot possibly

Re: Move queue to RAMFS

2009-03-20 Thread Brandon Hilkert
- Original Message - From: Terry Carmen te...@cnysupport.com To: Brandon Hilkert bhilk...@vt.edu Cc: Postfix users postfix-users@postfix.org Sent: Friday, March 20, 2009 4:40 PM Subject: Re: Move queue to RAMFS Brandon Hilkert wrote: I'm trying to get my queue to ramfs. I mounted a

Re: Postfix and virtual users with additional_condition

2009-03-20 Thread Sebastian Chociwski
I knew it must be something I am missing but the mails are still delivered. MYSQL cut : mailactivint(1) 0 mailvarchar(1) n email2email.cf : query = SELECT email FROM users WHERE email='%s' AND mailactiv= 1 (checked as well : query = SELECT

protect mailing-/distribution list

2009-03-20 Thread Heiko Baumann
hello, in our postfix setup we use virtual_alias_maps to build some simple mailing-/distribution lists. now we want to reject every mail to a list where the sender is not a member of the list. example: virtual_alias_maps li...@domaina.tld us...@domain1.tld us...@domain1.tld us...@domain1.tld

Re: Postfix and virtual users with additional_condition

2009-03-20 Thread Victor Duchovni
On Fri, Mar 20, 2009 at 10:17:28PM +0100, Sebastian Chociwski wrote: I knew it must be something I am missing but the mails are still delivered. MYSQL cut : mailactiv int(1) 0 mail varchar(1) n email2email.cf : query = SELECT email FROM

(postfix newbe) Postfix broken after MailScanner upgrade

2009-03-20 Thread Gregory Machin
Hi I'm green to Postfix. I have 2 anti-spam servers that I upgraded MailScanner to the latest version and a completely new install of MailScanner and postfix etc. All three have the same problems . the one thing that is common to all servers is the original configs. For the google-ing and digging

Re: Postfix and virtual users with additional_condition

2009-03-20 Thread Sebastian Chociwski
I am (almost ;) ) 100% sure that only mail could be delivered is in ONE mysql db. serwersuse111:~ # cat /etc/postfix/main.cf queue_directory=/var/spool/postfix command_directory=/usr/sbin daemon_directory = /usr/lib/postfix data_directory=/var/lib/postfix mail_owner=postfix myhostname =

lost connection with [] while sending RCPT TO

2009-03-20 Thread Tomasz Suchodolski
Hello, Today i had a mail that stuck in the queue with error: lost connection with mail.someserver.xxx [xx.xxx.xxx.xxx] while sending RCPT TO), so i looked at logs. During the session, their server sent mail: from= to=mail.someserver.xxx-1237585487-test...@mydomain.com proto=SMTP

Re: Looking for Anti-spam setting: local username/external IP

2009-03-20 Thread mouss
David A. Gershman a écrit : Yeah, Thought of that a little after mailing. Oh well, I guess I need to keep my efforts in later defenses (spamassassin). Thanks. On Thu, Mar 19, 2009 at 3:28 PM, David A. Gershman dagershman_...@dagertech.net wrote: from an external source. I'm trying to

Re: (postfix newbe) Postfix broken after MailScanner upgrade

2009-03-20 Thread mouss
Gregory Machin a écrit : Hi I'm green to Postfix. I have 2 anti-spam servers that I upgraded MailScanner to the latest version and a completely new install of MailScanner and postfix etc. All three have the same problems . the one thing that is common to all servers is the original configs.

Re: Performance tuning

2009-03-20 Thread Wietse Venema
Brandon Hilkert: what is best to look out and compare? When the disk is 100% busy, then it is the bottle neck. Disks can be 100% busy jumping around doing very little I/O. As Noel suggested in earlier email, try running smtp-sink which does no disk I/O at all. If things are still

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
- Original Message - From: Ralf Hildebrandt ralf.hildebra...@charite.de To: postfix-users@postfix.org Sent: Friday, March 20, 2009 9:14 PM Subject: Re: Performance tuning * Brandon Hilkert bhilk...@vt.edu: I was able to get it to mount to tmpfs and it showed no change in

Re: Performance tuning

2009-03-20 Thread Ralf Hildebrandt
* Brandon Hilkert bhilk...@vt.edu: You said ext3 was faster, thus I think your ramfs test was flawed. I was able to mount it to a tmpfs partition. There was no change in throughput with my script on a tmpfs vs ext3 drive. So that would mean my disk is not a contribution factor right?

Re: Performance tuning

2009-03-20 Thread Duane Hill
On Fri, 20 Mar 2009, Brandon Hilkert wrote: I was able to mount it to a tmpfs partition. There was no change in throughput with my script on a tmpfs vs ext3 drive. So that would mean my disk is not a contribution factor right? I'm just following this thread because of curiosity. tmpfs? Or,

Re: Performance tuning

2009-03-20 Thread Brandon Hilkert
- Original Message - From: Duane Hill d.h...@yournetplus.com To: postfix-users@postfix.org Sent: Friday, March 20, 2009 10:08 PM Subject: Re: Performance tuning On Fri, 20 Mar 2009, Brandon Hilkert wrote: I was able to mount it to a tmpfs partition. There was no change in