Logfile condenser

2010-10-19 Thread Dom Latter
Helo, as one might say. Wading through logfiles to find a particular email has been taking up too much of my time recently [1]. I have written a logfile condenser that takes a postfix log and generates a single line per email, with (for example) timestamp, ham /spam, sender, recipient, spam

RE: Logfile condenser

2010-10-19 Thread Mark Scholten
-Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix- us...@postfix.org] On Behalf Of Dom Latter Sent: Tuesday, October 19, 2010 11:41 AM To: postfix-users@postfix.org Subject: Logfile condenser Helo, as one might say. Wading through logfiles to find

Re: Logfile condenser

2010-10-19 Thread Dom Latter
On 19/10/10 11:55, Mark Scholten wrote: From here there is interest in it. I would edit it to include the Encouraging! client/destination server and message ID, but for the rest it sounds great. Configurable as follows, e.g.: $output = array ('time', 'meat', 'from', 'to', 'hits', 'size');

Re: Resend emails from a Maildir

2010-10-19 Thread Roberto Scattini
On Mon, Oct 18, 2010 at 6:56 AM, Patric Falinder patric.falin...@omg.nuwrote: Hi, I'm not really sure if this has to do with Postifx so just tell me if I'm wrong. Is it possible to resend emails that are in a Maildir already? The reason for this is that a user changed server so I had to

Re: Fighting Backscatter

2010-10-19 Thread Wietse Venema
Steve Jenkins: Gotit. Thanks again for helping me out. I'm still learning. So it seems I need to figure out how to stop the backscatter process at step 6 and NOT return the bounce to the original sender. No. Solve the RIGHT problem. DO NOT forward SPAM. Wietse

automatic add attachments in postfix

2010-10-19 Thread David Touzeau
Dear I would like to find a tool that be able to add attachment in each outgoing mails, i was thinking about altermime but altermime add only txt,html file. I need to add vcf or pdf files. Is anyone know if a such tool exists ? best regards.

Re: Relay Access Denied using SASL

2010-10-19 Thread Charles Marcus
On 2010-10-19 1:42 AM, Yang Zhang wrote: smtpd_recipient_restrictions is specified a second time. A depressing amount of time was spent debugging this. For future reference, this is exactly why you should never go by what you see in main.cf (nor should you post excerpts from it here), but

Re: Fighting Backscatter

2010-10-19 Thread Charles Marcus
On 2010-10-18 9:58 PM, Steve Jenkins wrote: The instructions at http://www.postfix.org/BACKSCATTER_README.html seem to only address what to do if MY server is the one being forged. In the above example, it seems that procom.ca is being forged. How should I configure my Postfix installation so

Re: Fighting Backscatter

2010-10-19 Thread Ralf Hildebrandt
* Charles Marcus cmar...@media-brokers.com: As has been told to you more than once, the correct solution is simple... 1. Stop forwarding spam, or As we all know that not really easily done. I might consider a mail ham while other systems consider the mail to be spam. The first step must be

Re: Fighting Backscatter

2010-10-19 Thread martijn.list
2. Do not forward *any* emails, period. That's probably the simplest solution :) Wouldn't using an owner alias be a solution? (see expand_owner_alias). You can set the owner alias of the forward to some internal address. This internal address will only be used to 'suck-up' the bounces of

Re: Fighting Backscatter

2010-10-19 Thread Ralf Hildebrandt
* martijn.list martijn.l...@gmail.com: 2. Do not forward *any* emails, period. That's probably the simplest solution :) Wouldn't using an owner alias be a solution? (see expand_owner_alias). You can set the owner alias of the forward to some internal address. This internal address

Re: Fighting Backscatter

2010-10-19 Thread martijn.list
Wouldn't using an owner alias be a solution? (see expand_owner_alias). You can set the owner alias of the forward to some internal address. This internal address will only be used to 'suck-up' the bounces of forwarded messages. Interesting idea! It works for me. I forward a copy of every

Re: Fighting Backscatter

2010-10-19 Thread Noel Jones
On 10/19/2010 7:00 AM, Ralf Hildebrandt wrote: * martijn.listmartijn.l...@gmail.com: 2. Do not forward *any* emails, period. That's probably the simplest solution :) Wouldn't using an owner alias be a solution? (see expand_owner_alias). You can set the owner alias of the forward to some

smtpd_chat_query, dovecot sasl, AD, Samba4

2010-10-19 Thread Trever L. Adams
Hello everyone, I am hoping someone can help me with a problem. I have a Samba4 AD domain. I have dovecot setup to do gssapi against this AD. I have postfix configured to use dovecot sasl. It works great for imap in windows and linux. In Windows, smtp doesn't work for gssapi, but works for

Re: Fighting Backscatter

2010-10-19 Thread pf at alt-ctrl-del.org
On 2010-10-18 9:58 PM, Steve Jenkins wrote: The instructions at http://www.postfix.org/BACKSCATTER_README.html seem to only address what to do if MY server is the one being forged. In the above example, it seems that procom.ca is being forged. How should I configure my Postfix installation so

Re: smtpd_chat_query, dovecot sasl, AD, Samba4

2010-10-19 Thread Wietse Venema
Trever L. Adams: With Windows I get the following: postfix/smtpd[6364]: warning: CLIENT_FQDN[CLIENT_IP]: request longer than 2048: AUTH GSSAPI gssapidata. My query is this: does postfix truncate or otherwise mess up the data when the above warning is given? If not, has anyone seen something

Re: smtpd_chat_query, dovecot sasl, AD, Samba4

2010-10-19 Thread Trever L. Adams
On 10/19/2010 08:10 AM, Wietse Venema wrote: Postfix enforces a very generous SMTP command line length limit of 2048 bytes. You're welcome to increase main.cf:line_length_limit but I have never heard of a case where it was too small. While the SMTP RFCs give limits on line lengths, and RFC

Re: smtpd_chat_query, dovecot sasl, AD, Samba4

2010-10-19 Thread Trever L. Adams
Ok, so it is documented for others. If you are using dovecot sasl with postfix and are using Thunderbird in Windows (part of an AD domain) and using smtp kerberos authentication, make sure you have line_length_limit = 2176 in postfix's main.cf. Thanks to Wietse for his help. Trever -- The

Re: Request for help with redesign of Postfix Configuration File ...

2010-10-19 Thread Ben McGinnes
On 19/10/10 8:04 AM, Ralf Hildebrandt wrote: * Christopher Koeber ckoe...@gmail.com: inet_interfaces = all default mydomain = students.wesleyseminary.edu myhostname = students.wesleyseminary.edu I'd say myhostname = students.wesleyseminary.edu which implies mydomain =

Upgrade 2.5.4

2010-10-19 Thread Linux Addict
Hello, I am running postfix 2.5.4 and would like to upgrade it to latest stable 2.7.0. What is the best way upgrade? Do a clean install and port the settings to newer version? Any help is appreciated. ~LA

Re: Request for help with redesign of Postfix Configuration File ...

2010-10-19 Thread Jeroen Geilman
On 10/19/2010 06:12 PM, Ben McGinnes wrote: Not if the students subdomain has different MX details to the main domain, which appears to be the case here: ;; ANSWER SECTION: wesleyseminary.edu. 43098 IN MX 10 mail1.no-ip.com. wesleyseminary.edu. 43098 IN MX 15

Re: virtual_alias_domains

2010-10-19 Thread Jeroen Geilman
On 10/18/2010 10:56 PM, Jerrale G wrote: On 10/18/2010 4:43 PM, Jeroen Geilman wrote: On 10/18/2010 10:36 PM, Jerrale G wrote: On 10/18/2010 4:29 PM, The Doctor wrote: REcently I have noted that virtual_alias_domains is growing. Is their some way for main.cf to look a file up instead of

Re: automatic add attachments in postfix

2010-10-19 Thread Jeroen Geilman
On 10/19/2010 01:26 PM, David Touzeau wrote: Dear I would like to find a tool that be able to add attachment in each outgoing mails, i was thinking about altermime but altermime add only txt,html file. I need to add vcf or pdf files. Is anyone know if a such tool exists ? A Mail

Re: Upgrade 2.5.4

2010-10-19 Thread Victor Duchovni
On Tue, Oct 19, 2010 at 12:17:23PM -0400, Linux Addict wrote: Hello, I am running postfix 2.5.4 and would like to upgrade it to latest stable 2.7.0. What is the best way upgrade? Do a clean install and port the settings to newer version? Any help is appreciated. No. Do an upgrade. If

Re: Logfile condenser

2010-10-19 Thread Jeroen Geilman
On 10/19/2010 12:37 PM, Dom Latter wrote: On 19/10/10 11:55, Mark Scholten wrote: From here there is interest in it. I would edit it to include the Encouraging! client/destination server and message ID, but for the rest it sounds great. Configurable as follows, e.g.: $output = array

Re: smtpd_chat_query, dovecot sasl, AD, Samba4

2010-10-19 Thread Victor Duchovni
On Tue, Oct 19, 2010 at 10:10:32AM -0400, Wietse Venema wrote: My query is this: does postfix truncate or otherwise mess up the data when the above warning is given? If not, has anyone seen something similar? Is it a bug in Thunderbird? Postfix enforces a very generous SMTP command line

Re: smtpd_chat_query, dovecot sasl, AD, Samba4

2010-10-19 Thread Victor Duchovni
On Tue, Oct 19, 2010 at 08:37:10AM -0600, Trever L. Adams wrote: Ok, so it is documented for others. If you are using dovecot sasl with postfix and are using Thunderbird in Windows (part of an AD domain) and using smtp kerberos authentication, make sure you have line_length_limit = 2176 in

RE: What's done with malformed headers

2010-10-19 Thread Murray S. Kucherawy
-Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Tuesday, September 28, 2010 9:52 PM To: Postfix users Subject: Re: What's done with malformed headers The first line that is not a header is

Re: automatic add attachments in postfix

2010-10-19 Thread David Touzeau
Le mardi 19 octobre 2010 à 19:33 +0200, Jeroen Geilman a écrit : On 10/19/2010 01:26 PM, David Touzeau wrote: Dear I would like to find a tool that be able to add attachment in each outgoing mails, i was thinking about altermime but altermime add only txt,html file. I need to add vcf

Re: What's done with malformed headers

2010-10-19 Thread Wietse Venema
Wietse: The first line that is not a header is considered to be part of the message body. Postfix may or may not prepend a blank line to this non-header line (it always, did but then it was found that it is better not to insert a blank line in malformed attachments. As of 20070112 Postfix

Re: What's done with malformed headers

2010-10-19 Thread Victor Duchovni
On Tue, Oct 19, 2010 at 11:40:10AM -0700, Murray S. Kucherawy wrote: Does this go for a header field in which there's a space between the name and the colon as well? For example: MIME-Version : 1.0 The *22 RFCs allow it, so Postfix does too. Comments starting line 59 of

Re: Logfile condenser

2010-10-19 Thread Dom Latter
[as subject] On 19/10/10 19:42, Jeroen Geilman wrote: How does it deal with address rewriting and alias expansion, which is the routing core of postfix ? Badly? It's a site-specific script hacked up quickly for my own purposes. timestamp - client IP [hostname] - orig_envelope_from

Re: Resend emails from a Maildir

2010-10-19 Thread Victor Duchovni
On Mon, Oct 18, 2010 at 11:37:18PM +0200, mouss wrote: - get the MAIL FROM address from the Return-Path header. with this you can do: sendmail -f $returnpath yourdestinationemail Make that: sendmail -i -f $returnpath -- $destpath msgfile The returnpath can have all kinds of

Re: Upgrade 2.5.4

2010-10-19 Thread fake...@fakessh.eu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 19.10.2010 19:42, Victor Duchovni a écrit : On Tue, Oct 19, 2010 at 12:17:23PM -0400, Linux Addict wrote: Hello, I am running postfix 2.5.4 and would like to upgrade it to latest stable 2.7.0. What is the best way upgrade? Do a clean install

Re: automatic add attachments in postfix

2010-10-19 Thread Jeroen Geilman
On 10/19/2010 08:54 PM, David Touzeau wrote: Le mardi 19 octobre 2010 à 19:33 +0200, Jeroen Geilman a écrit : On 10/19/2010 01:26 PM, David Touzeau wrote: Dear I would like to find a tool that be able to add attachment in each outgoing mails, i was thinking about altermime but altermime

Re: Logfile condenser

2010-10-19 Thread Jeroen Geilman
On 10/19/2010 09:20 PM, Dom Latter wrote: [as subject] On 19/10/10 19:42, Jeroen Geilman wrote: How does it deal with address rewriting and alias expansion, which is the routing core of postfix ? Badly? It's a site-specific script hacked up quickly for my own purposes. timestamp - client

Re: Logfile condenser

2010-10-19 Thread Dom Latter
On 19/10/10 21:53, Jeroen Geilman wrote: I am definitely interested, I wasn't baiting you. This is a decidedly untrivial task, given the flexibility of logging. That's okay, I'm taking a very trivial approach - no idea how it would behave when faced with more complicated logs. I'll send it

Re: Logfile condenser

2010-10-19 Thread mouss
Le 19/10/2010 11:41, Dom Latter a écrit : Helo, as one might say. Wading through logfiles to find a particular email has been taking up too much of my time recently [1]. I have written a logfile condenser that takes a postfix log and generates a single line per email, with (for example)

Re: automatic add attachments in postfix

2010-10-19 Thread mouss
Le 19/10/2010 13:26, David Touzeau a écrit : Dear I would like to find a tool that be able to add attachment in each outgoing mails, i was thinking about altermime but altermime add only txt,html file. I need to add vcf or pdf files. Is anyone know if a such tool exists ? hmm, are you sure?

Re: virtual_alias_domains

2010-10-19 Thread mouss
Le 18/10/2010 22:56, Jerrale G a écrit : On 10/18/2010 4:43 PM, Jeroen Geilman wrote: On 10/18/2010 10:36 PM, Jerrale G wrote: On 10/18/2010 4:29 PM, The Doctor wrote: REcently I have noted that virtual_alias_domains is growing. Is their some way for main.cf to look a file up instead of

outer mail sender question

2010-10-19 Thread ren yufei
Dear all, I am a newbie in Postfix. I have successfully installed postfix in ubuntu refers the tutorials: https://help.ubuntu.com/community/Postfix now I could send mail internally, but could not send mail to the outside (gmail.com, yahoo.com, etc). the Mail Delivery Status Report is as

Re: automatic add attachments in postfix

2010-10-19 Thread David Touzeau
Le mardi 19 octobre 2010 à 21:50 +0200, Jeroen Geilman a écrit : On 10/19/2010 08:54 PM, David Touzeau wrote: Le mardi 19 octobre 2010 à 19:33 +0200, Jeroen Geilman a écrit : On 10/19/2010 01:26 PM, David Touzeau wrote: Dear I would like to find a tool that be able to add

Re: outer mail sender question

2010-10-19 Thread Jeroen Geilman
On 10/19/2010 11:44 PM, ren yufei wrote: Dear all, I am a newbie in Postfix. I have successfully installed postfix in ubuntu refers the tutorials: https://help.ubuntu.com/community/Postfix Tutorials often fail to explain how it actually works. Don't depend on them. now I could send mail

Re: automatic add attachments in postfix

2010-10-19 Thread Jeroen Geilman
On 10/20/2010 12:29 AM, David Touzeau wrote: Le mardi 19 octobre 2010 à 21:50 +0200, Jeroen Geilman a écrit : Take a look at the Filter readme: http://www.postfix.org/FILTER_README.html Or, alternatively, the Milter readme: http://www.postfix.org/MILTER_README.html Or even the SMTP proxy

Re: outer mail sender question

2010-10-19 Thread ren yufei
Thank you. Although the fail of sending email outside, there is no mail.err or mail.warn generated. Just mail.info and mail.log. Info @ mail.info Oct 19 16:07:44 ubuntu postfix/pickup[22916]: 9422DA070A: uid=1000 from=ren Oct 19 16:07:44 ubuntu postfix/cleanup[23070]: 9422DA070A:

Re: outer mail sender question

2010-10-19 Thread Wietse Venema
ren yufei: Oct 19 16:07:45 ubuntu postfix/local[23073]: 9422DA070A: to=renyufe...@gmail.co m, relay=local, delay=0.46, delays=0.19/0.05/0/0.22, dsn=5.1.1, status=bounced (unknown user: renyufei83) You are sending mail for GMAIL.COM to the LOCAL delivery agent. This usually means that by

Re: outer mail sender question

2010-10-19 Thread ren yufei
Thank you. It works. But I got the new error message : connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection refused. I also tried yahoo.com and get the same error. From: Wietse Venema wie...@porcupine.org To: ren yufei

Re: outer mail sender question

2010-10-19 Thread Wietse Venema
ren yufei: Thank you. It works. But I got the new error message : connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection refused. I also tried yahoo.com and get the same error. Many ISPs block direct mail to port 25 for security reasons. If that is the case for you,

Re: outer mail sender question

2010-10-19 Thread Jeroen Geilman
On 10/20/2010 02:38 AM, Wietse Venema wrote: ren yufei: Thank you. It works. But I got the new error message : connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection refused. I also tried yahoo.com and get the same error. Many ISPs block direct mail to port 25 for

RE: Fighting Backscatter

2010-10-19 Thread Steve Jenkins
I will gladly solve the RIGHT problem. The fact that I'm here looking for guidance should demonstrate that I'm looking to do exactly that. Unfortunately, I can't simply put DO NOT forward SPAM in my main.cf and have it work. ;) After reading through all the docs and various blog and forum posts,

Re: Fighting Backscatter

2010-10-19 Thread Jeroen Geilman
On 10/20/2010 02:52 AM, Steve Jenkins wrote: I will gladly solve the RIGHT problem. The fact that I'm here looking for guidance should demonstrate that I'm looking to do exactly that. Unfortunately, I can't simply put DO NOT forward SPAM in my main.cf and have it work. ;) After reading through

Re: outer mail sender question

2010-10-19 Thread ren yufei
Thank you and it works.^^ From: Wietse Venema wie...@porcupine.org To: Postfix users postfix-users@postfix.org Sent: Tue, October 19, 2010 8:38:50 PM Subject: Re: outer mail sender question ren yufei: Thank you. It works. But I got the new error message :

RE: Fighting Backscatter

2010-10-19 Thread Steve Jenkins
Thanks for the reply. Forcing everyone to just check their mail with POP/IMAP was actually what I was going to resort to if I couldn't figure out a way to do this with just Postfix config settings. It seems that unless I want to manage a SPAM filter on my server for everyone (which is not

RE: Fighting Backscatter

2010-10-19 Thread Terry Gilsenan
From: owner-postfix-us...@postfix.org [owner-postfix-us...@postfix.org] On Behalf Of Steve Jenkins [st...@stevejenkins.com] Sent: Wednesday, 20 October 2010 10:52 AM To: Postfix users Subject: RE: Fighting Backscatter I will gladly solve the RIGHT problem. The fact that I'm here looking for

RE: Fighting Backscatter

2010-10-19 Thread Steve Jenkins
THANK YOU Jeroen. J I really appreciate you taking the time to help me with some specific steps I can try. Here's the updated output of my postconf -n: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin

Re: Fighting Backscatter

2010-10-19 Thread Jeroen Geilman
On 10/20/2010 03:38 AM, Steve Jenkins wrote: THANK YOU Jeroen. J I really appreciate you taking the time to help me with some specific steps I can try. Well, let's say I can provide you with some pointers. That doesn't absolve you of the responsibility to study the documentation

RE: Fighting Backscatter

2010-10-19 Thread Steve Jenkins
Hi, Terry. Again, very helpful advice presented in a way I understand. :) Thank you. Based on Jeroen's advice, I've modified my main.cf file to restrict much more of the undeliverable mail on the way IN. Just from watching my logfile over the past few minutes, I'm seeing a LOT more rejections for

RE: Fighting Backscatter

2010-10-19 Thread Terry Gilsenan
From: owner-postfix-us...@postfix.org [owner-postfix-us...@postfix.org] On Behalf Of Steve Jenkins [st...@stevejenkins.com] Sent: Wednesday, 20 October 2010 11:50 AM To: Terry Gilsenan; Postfix users Subject: RE: Fighting Backscatter Hi, Terry. Again, very helpful advice presented in a way I

RE: Fighting Backscatter

2010-10-19 Thread Steve Jenkins
Well, let's say I can provide you with some pointers. That doesn't absolve you of the responsibility to study the documentation thoroughly. Thank you nonetheless. I was starting to get the impression that doing anything other than telling people to read the documentation was verboten. ;) I'm

OT Gmail

2010-10-19 Thread Julio Cesar Covolato
Hi! I wonder know what system Gmail use. They use postfix as mta? I dont think so... How to scale for milions acounts, how do they do it? Thanks. -- - _Julio Cesar Covolato 0v0ju...@psi.com.br /(_)\ F: 55-11-3129-3366 ^ ^ PSI INTERNET

Re: OT Gmail

2010-10-19 Thread Jay Bendon
Everything is built inhouse and guarded very closely. U will not be able to duplicate their product without significant financial investment or just use their product. On Oct 19, 2010 10:27 PM, Julio Cesar Covolato ju...@psi.com.br wrote: Hi! I wonder know what system Gmail use. They use

Re: Fighting Backscatter

2010-10-19 Thread Stan Hoeppner
Jeroen Geilman put forth on 10/19/2010 8:09 PM: You're missing some of the better spam prevention methods here, such as decent HELO checks, and an RBL or two. I'd suggest at least adding reject_unknown_reverse_client_hostname in there, as well as (testing out)

RE: Fighting Backscatter

2010-10-19 Thread Steve Jenkins
Jeroen said: My personal server uses: smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unknown_reverse_client_hostname, warn_if_reject reject_non_fqdn_helo_hostname,

RE: Fighting Backscatter

2010-10-19 Thread Steve Jenkins
Stan Hoeppner said: This will probably be a big help to Steve. Thanks, Stan. That fqrdns.pcre file rocks. Is that something you created? May I share the link with others? I had already added the spamhaus DBL checks (after Jeroen nudged me toward their Zen IP blocklist), but Surriel PSBL is new