Re: call scripts for each of the incoming emails

2010-12-15 Thread Victor Duchovni
On Wed, Dec 15, 2010 at 05:36:19PM +1100, James Gray wrote: At the risk of being blacklisted on this rather robust forum, when I've needed a DB backend for mail I've invariably ended up with a product designed for that purpose. The idea of piping or scripting may seem desirable at first, but

Re: call scripts for each of the incoming emails

2010-12-15 Thread James Gray
On 15/12/2010, at 7:00 PM, Victor Duchovni wrote: On Wed, Dec 15, 2010 at 05:36:19PM +1100, James Gray wrote: At the risk of being blacklisted on this rather robust forum, when I've needed a DB backend for mail I've invariably ended up with a product designed for that purpose. The idea of

postfix and mailing the same e-mail to hundreds of clients

2010-12-15 Thread Razvan Chitu
Hello there, The question here is a fairly simple one: given a simple postfix mail server (primary mx), with local *nix user accounts, I want to know the best way of implementing the following situation: - Someone (a.k.a. the management) sends an e-mail with attachments to a certain

Re: postfix and mailing the same e-mail to hundreds of clients

2010-12-15 Thread Ralf Hildebrandt
* Razvan Chitu c...@topedge.ro: Hello there, The question here is a fairly simple one: given a simple postfix mail server (primary mx), with local *nix user accounts, I want to know the best way of implementing the following situation: - Someone (a.k.a. the management) sends an e-mail

Re: call scripts for each of the incoming emails

2010-12-15 Thread Wietse Venema
Spacelee: hi everything, I met a problem recently because we need to add a new function to our product. the problem is for each valid incoming email, we need to call a script to insert it to different databases, someone said I could add this to the /etc/aliases, like : b...@example.org:

Re: call scripts for each of the incoming emails

2010-12-15 Thread Victor Duchovni
On Wed, Dec 15, 2010 at 10:51:13AM -0500, Wietse Venema wrote: Spacelee: hi everything, I met a problem recently because we need to add a new function to our product. the problem is for each valid incoming email, we need to call a script to insert it to different databases, someone said

Compile error

2010-12-15 Thread M. Rodrigo Monteiro
Hi! I'm tryind to compile Postfix with Dovecot support. CentOS 5.5 Kernel 2.6.18-194.26.1.el5 Dovecot 2.0.8 Postfix 2.7.2 The make command: make -f Makefile.init makefiles \ 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -I/usr/include -DHAS_DB -I/usr/include/db4 -DUSE_TLS

Re: Compile error

2010-12-15 Thread Eero Volotinen
2010/12/15 M. Rodrigo Monteiro fale...@rodrigomonteiro.net: Hi! I'm tryind to compile Postfix with Dovecot support. Why? Can't you just take precompiled binary? -- Eero

Re: Compile error

2010-12-15 Thread fakessh @
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 15.12.2010 19:22, Eero Volotinen a écrit : 2010/12/15 M. Rodrigo Monteiro fale...@rodrigomonteiro.net: Hi! I'm tryind to compile Postfix with Dovecot support. Why? Can't you just take precompiled binary? -- Eero i try with succes

Re: Compile error

2010-12-15 Thread Victor Duchovni
On Wed, Dec 15, 2010 at 03:11:26PM -0300, M. Rodrigo Monteiro wrote: The make command: make -f Makefile.init makefiles \ 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -I/usr/include No need for -I/usr/include, this is always included. -DHAS_DB -I/usr/include/db4 -DUSE_TLS

Re: Load issues with Postfix on FreeBSD

2010-12-15 Thread Dave Brodin
Thanks to everyone for suggestions about the load issue. I will endeavor to provide more specific information. It took a while to move everything off of that server so I could do the load testing with smtp-source. Let me preface by saying that my real systems administrator took another job,

Re: Compile error

2010-12-15 Thread M. Rodrigo Monteiro
On Wed, Dec 15, 2010 at 15:30, Victor Duchovni victor.ducho...@morganstanley.com wrote: --        Viktor. Thanks Viktor! With the makefile below, Postfix compile without even warning errors. make -f Makefile.init makefiles \ 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -DUSE_TLS

Re: Load issues with Postfix on FreeBSD

2010-12-15 Thread Matthias Andree
Am 15.12.2010 19:37, schrieb Dave Brodin: Thanks to everyone for suggestions about the load issue. I will endeavor to provide more specific information. It took a while to move everything off of that server so I could do the load testing with smtp-source. Let me preface by saying that my

Re: Load issues with Postfix on FreeBSD

2010-12-15 Thread Wietse Venema
Dave Brodin: 84 processes: 13 running, 71 sleeping CPU: 1.9% user, 0.0% nice, 98.1% system, 0.0% interrupt, 0.0% idle Mem: 171M Active, 6548M Inact, 842M Wired, 246M Cache, 827M Buf, 104M Free Swap: 4096M Total, 60K Used, 4096M Free PID USERNAME THR PRI NICE SIZERES STATE

Re: Load issues with Postfix on FreeBSD

2010-12-15 Thread Victor Duchovni
On Wed, Dec 15, 2010 at 01:37:48PM -0500, Dave Brodin wrote: I ran the following command: time /usr/local/bin/smtp-source -s 10 -l 10120 -m 500 -c \ -f t...@bluemarble.net -t dbro...@bluemarble.net localhost:25 OK, this is smtp-source with 10 (modest) parallel sessions, 10KB (modest)

Re: Compile error

2010-12-15 Thread Victor Duchovni
On Wed, Dec 15, 2010 at 03:41:18PM -0300, M. Rodrigo Monteiro wrote: With the makefile below, Postfix compile without even warning errors. make -f Makefile.init makefiles \ 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -DUSE_TLS -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\dovecot\' \

using yahoo smtp with several accounts

2010-12-15 Thread Roger Durañona Vargas
I want to install a server that will work as a gateway to receive and send mails from severla yahoo.es accounts. So far I have reception working perfectly with fetchmail+procmail, and succesfully sent mails with one account. But when added a second account I started getting the 553 error: From

Re: using yahoo smtp with several accounts

2010-12-15 Thread Roger Durañona Vargas
Alfonso Alejandro Reyes Jimenez escribió: Hi, I'm not an expert on postfix but I think you have an issue with your authentication. Are you sure you are not sending emails with the same username and password as the other account ?? (the account that works?) or maybe you are trying to send

Re: using yahoo smtp with several accounts

2010-12-15 Thread Noel Jones
On 12/15/2010 8:42 AM, Roger Durañona Vargas wrote: Alfonso Alejandro Reyes Jimenez escribió: Hi, I'm not an expert on postfix but I think you have an issue with your authentication. Are you sure you are not sending emails with the same username and password as the other account ?? (the

Trouble getting TLS working

2010-12-15 Thread Ted To
Hi, I have a configuration using dovecot that works for sending and receiving email. Mail collection by my MUA can be SSL encrypted via dovecot but outbound mail is not encrypted. After I added TLS configurations, I'm able to send TLS encrypted email but I can no longer receive mail. I.e., if

Re: Trouble getting TLS working

2010-12-15 Thread Bradley Giesbrecht
On Dec 15, 2010, at 12:31 PM, Ted To wrote: Hi, I have a configuration using dovecot that works for sending and receiving email. Mail collection by my MUA can be SSL encrypted via dovecot but outbound mail is not encrypted. After I added TLS configurations, I'm able to send TLS encrypted

Re: Trouble getting TLS working

2010-12-15 Thread Ted To
On Wed, 15 Dec 2010 12:41:11 -0800 Bradley Giesbrecht bradley.giesbre...@gmail.com wrote: On Dec 15, 2010, at 12:31 PM, Ted To wrote: Hi, I have a configuration using dovecot that works for sending and receiving email. Mail collection by my MUA can be SSL encrypted via dovecot but

Re: Trouble getting TLS working

2010-12-15 Thread Jeroen Geilman
On 12/15/10 9:50 PM, Ted To wrote: On Wed, 15 Dec 2010 12:41:11 -0800 Bradley Giesbrechtbradley.giesbre...@gmail.com wrote: On Dec 15, 2010, at 12:31 PM, Ted To wrote: Hi, I have a configuration using dovecot that works for sending and receiving email. Mail collection by my MUA can be SSL

Re: Trouble getting TLS working

2010-12-15 Thread Ted To
On Wed, 15 Dec 2010 22:16:45 +0100 Jeroen Geilman jer...@adaptr.nl wrote: Oh FGS just *include it in the mail*. Sorry -- I thought I was making the email more readable... This expands aliases: alias_maps = hash:/etc/aliases virtual_alias_maps = hash:/etc/postfix/valias.txt

Re: Append orig_to messages subject

2010-12-15 Thread selcukyazar
Hi again, my .forward manupulation works. | sed -e 's/Subject:/Subject:FW: /g' -e '/'Received:\.\*'/{N;d}'| /usr/sbin/sendmail -i mail_ad...@hotmail.com ok, also i wantto use command like this; if [ `expr match $str [][{!-]Spam[][?}].*` != 0 ]; then abort forwarding anyway fi is it possible

Re: Trouble getting TLS working

2010-12-15 Thread Jeroen Geilman
On 12/15/10 10:24 PM, Ted To wrote: On Wed, 15 Dec 2010 22:16:45 +0100 Jeroen Geilmanjer...@adaptr.nl wrote: Oh FGS just *include it in the mail*. Sorry -- I thought I was making the email more readable... This expands aliases: alias_maps = hash:/etc/aliases virtual_alias_maps

Re: Load issues with Postfix on FreeBSD

2010-12-15 Thread Wietse Venema
Victor Duchovni: On Wed, Dec 15, 2010 at 01:37:48PM -0500, Dave Brodin wrote: I ran the following command: time /usr/local/bin/smtp-source -s 10 -l 10120 -m 500 -c \ -f t...@bluemarble.net -t dbro...@bluemarble.net localhost:25 OK, this is smtp-source with 10 (modest) parallel

Re: Load issues with Postfix on FreeBSD

2010-12-15 Thread Dave Brodin
Great. It's very helpful to have some comparison numbers to know what the performance should be like. I'm going to start by getting that server on a stable release of FreeBSD rather than a pre-release. Also a fresh install of postfix with a default configuration just so I can make sure

Re: postscreen request: pcre support

2010-12-15 Thread Jeroen Koekkoek
On 12/01/2010 06:42 PM, Wietse Venema wrote: jer...@intuxicated.org: On Wed, 1 Dec 2010 10:41:22 -0500 (EST), Wietse Venema wie...@porcupine.org wrote: Jeroen Koekkoek: Hi, I would like to request pcre table support in postscreen for some fields e.g. client_name, helo_name, etc. For

Re: postscreen request: pcre support

2010-12-15 Thread Victor Duchovni
On Thu, Dec 16, 2010 at 12:38:46AM +0100, Jeroen Koekkoek wrote: I've read through the postscreen code and got a general understanding of how it works internally. But judging from the documentation: is postscreen intended to ever do more than allowing/disallowing client connections? e.g.

Re: Append orig_to messages subject

2010-12-15 Thread Victor Duchovni
On Wed, Dec 15, 2010 at 01:28:17PM -0800, selcukyazar wrote: Hi again, my .forward manupulation works. | sed -e 's/Subject:/Subject:FW: /g' -e '/'Received:\.\*'/{N;d}'| /usr/sbin/sendmail -i mail_ad...@hotmail.com This creates bounce loops. DO NOT ignore the envelope sender when

Re: postscreen request: pcre support

2010-12-15 Thread Jeroen Koekkoek
On 12/16/2010 12:47 AM, Victor Duchovni wrote: On Thu, Dec 16, 2010 at 12:38:46AM +0100, Jeroen Koekkoek wrote: I've read through the postscreen code and got a general understanding of how it works internally. But judging from the documentation: is postscreen intended to ever do more than

Re: Load issues with Postfix on FreeBSD

2010-12-15 Thread Stan Hoeppner
Wietse Venema put forth on 12/15/2010 12:48 PM: I have never seen smtpd use up significant amounts of CPU, except with Stan Hoeppner's extremely large PCRE or CIDR tables. I do have some pretty large tables, but the high CPU burn is probably more as much a function of my horribly old and slow

Re: Trouble getting TLS working

2010-12-15 Thread Ted To
On Wed, 15 Dec 2010 23:28:39 +0100 Jeroen Geilman jer...@adaptr.nl wrote: On 12/15/10 10:24 PM, Ted To wrote: On Wed, 15 Dec 2010 22:16:45 +0100 Jeroen Geilmanjer...@adaptr.nl wrote: Oh FGS just *include it in the mail*. Sorry -- I thought I was making the email more readable...

Re: Trouble getting TLS working

2010-12-15 Thread Wietse Venema
Ted To: Dec 15 19:57:51 kahlo postfix/smtpd[11144]: connect from c-68-48-70-58.hsd1.dc.comcast.net[68.48.70.58] Dec 15 19:57:51 kahlo postfix/smtpd[11144]: F158B341DF: client=c-68-48-70-58.hsd1.dc.comcast.net[68.48.70.58], sasl_method=PLAIN,

Re: Trouble getting TLS working

2010-12-15 Thread Ted To
On Wed, 15 Dec 2010 20:24:37 -0500 (EST) Wietse Venema wie...@porcupine.org wrote: This is logged by the same smtpd process, so we can be sure that it was using the same configuration for both SMTP sessions. Now the big question is, what configuration causes user unknown depending on the

line 615: missing '=' after attribute name: 3

2010-12-15 Thread zen
Greetings all. I'm stumped. I've got a nice new dual core AMD system built with FreeBSD 8.1 I've got Postfix, amavisd, clam and TLS working (root signed certificate) At least it was - now I can't even load postfix. When I do a postfix start I get the following error: line 615: missing

Re: line 615: missing '=' after attribute name: 3

2010-12-15 Thread Noel Jones
On 12/15/2010 8:47 PM, zen wrote: Greetings all. I'm stumped. I've got a nice new dual core AMD system built with FreeBSD 8.1 I've got Postfix, amavisd, clam and TLS working (root signed certificate) At least it was - now I can't even load postfix. When I do a postfix start I get the

Re: line 615: missing '=' after attribute name: 3

2010-12-15 Thread Victor Duchovni
On Wed, Dec 15, 2010 at 09:35:01PM -0600, Noel Jones wrote: Line 615 is the middle line above -- '# This is the Send...' The error is complaining about a line that starts with 3 and the next character is not =. Postfix parameter setting are multi-line with folding on white-space abc =

.Forward file piping forwarded mail (abort sendmail)

2010-12-15 Thread selcukyazar
Hi my .forward manupulation works. | sed -e 's/Subject:/Subject:FW: /g' -e '/'Received:\.\*'/{N;d}'| /usr/sbin/sendmail -i mail_ad...@hotmail.com -considering bounce loops- ok, also i wantto use command like this; if [ `expr match $str [][{!-]Spam[][?}].*` != 0 ]; then abort forwarding