Header/body checks question, problem.

2009-01-04 Thread KLaM Postmaster
I am having a problem with some legitimate emails being rejected by header and/or body checks. Both the header and body checks are from Jeffrey Posluns' write up,without any mods. Among the stuff being rejected is the output of pflogsumm, I run a daily a report and email it to postmaster. I was not

Re: Postix relay gateway - "Recipient address rejected" notification verbosity ...

2009-01-04 Thread mouss
Antony a écrit : > Happy new year to all of you ! ;o) > Bonne année! > [snip] > > smtpd_recipient_restrictions = > > reject_invalid_hostname, > > reject_non_fqdn_helo_hostname, > > reject_non_fqdn_hostname, > this is the same as reject_non_fqdn_helo_hostname > reject_no

Re: Allowing return email

2009-01-04 Thread mouss
Ralf Hildebrandt a écrit : > * postfix@cmulcahy.com : >> Greetings: >> >> I'm running several spam-filtering tools including Postgrey, >> SpamAssassin, etc. I would like to make replying to mail I have sent >> easier. >> >> How can I automatically white-list addresses to whom I have sent

Re: Header/body checks question, problem.

2009-01-04 Thread Wietse Venema
KLaM Postmaster: > Among the stuff being rejected is the output of pflogsumm, I run a daily > a report and email it to postmaster. I was not getting the reports so I See http://www.postfix.org/http://www.postfix.org/BUILTIN_FILTER_README.html section "Preventing daily mail status reports from bein

Re: localhost and smarthost

2009-01-04 Thread Asif Iqbal
On Sun, Jan 4, 2009 at 6:11 AM, mouss wrote: > Asif Iqbal a écrit : >> Hi All >> >> All my email gets relayed thru gmail as it should. But how do I tell >> it to send all localemails to local spool and not send it to gmail? I see qmgr sends the mail to smtp and local like in this flowchart http:

Re: Allowing return email

2009-01-04 Thread postfix . org
Ralf Hildebrandt wrote: How can I automatically white-list addresses to whom I have sent email? SpamAssassin has "PenPals" for exactly that you mean amavisd-new? Ah, yes, I suck. I expect everybody to use amavisd-new to integrate SA :) Thanks for all of the advice. I'm

Re: syslog convert to lowercase

2009-01-04 Thread Henrik K
On Sun, Jan 04, 2009 at 08:33:12PM +0530, Ramprasad wrote: > > My logfiles are approx 1.5 GB each, if we rotate twice a day > grep sender.*recipient $logfile is really much much faster than grep > -i sender.*recipient $logfile > IMHO grep would not count as lousy code ( on linux ) And are you s

RE: Postix relay gateway - "Recipient address rejected" notification verbosity ...

2009-01-04 Thread Antony
My version is an etch 2.3.8. Even if I'm french, I think my version number is in the scope ;o) Here are the postfix log I omit to give you : Jan 3 22:53:03 mx1 postfix/smtpd[16104]: connect from postfix2-g20.free.fr[212.27.60.43] Jan 3 22:53:03 mx1 postfix/cleanup[16114]: ED3552DE159: message-i

[RESOLVED] Postix relay gateway - "Recipient address rejected" notification verbosity ...

2009-01-04 Thread Antony
Nice !! Jan 4 12:13:00 mx1 postfix/smtpd[17608]: connect from smtp7-g19.free.fr[212.27.42.64] Jan 4 12:13:00 mx1 postfix/smtpd[17608]: NOQUEUE: reject: RCPT from smtp7-g19.free.fr[212.27.42.64]: 550 5.1.1 : Recipient address rejected: User unknown; from= to= proto=ESMTP helo= Jan 4 12:13:00 mx1

How to relay AND store all emails on a gateway ?

2009-01-04 Thread Antony
I slept some hours, my mind is relaxed and less confused than those last days, let's go ! ;o) Thanks to Wietse and mouss, my gateway is now fully functional, and relays emails to my server : Internet --> mx1.mydomain.com[my gateway with postfix] --> mx2.mydomain.com (only MX1 acts as a DNS MX f

Relaying/forwarding query

2009-01-04 Thread Nigel Gilbert
I have Postfix running on dusty.soc.surrey.ac.uk. I would like mail from the internet addressed to unknown local users on this server (e.g. to x...@soc.surrey.ac.uk) to be re-addressed and forwarded to the mail server at surrey.ac.uk, for example, mail to x...@soc.surrey.ac.uk should be re-address

Re: syslog convert to lowercase

2009-01-04 Thread Victor Duchovni
On Sun, Jan 04, 2009 at 08:33:12PM +0530, Ramprasad wrote: > My logfiles are approx 1.5 GB each, if we rotate twice a day > grep sender.*recipient $logfile is really much much faster than grep > -i sender.*recipient $logfile > IMHO grep would not count as lousy code ( on linux ) Use "egrep -i"

RE: Postix relay gateway - "Recipient address rejected" notification verbosity ...

2009-01-04 Thread PauAmma
On Sun, 4 Jan 2009, Antony wrote: My version is an etch 2.3.8. Even if I'm french, I think my version number is in the scope ;o) Even in France, I think 6 is greater than 3... Here are the postfix log I omit to give you : Jan 3 22:53:03 mx1 postfix/smtpd[16104]: connect from postfix2-g20.f

Change message error

2009-01-04 Thread Michael JOLY
Hello, Can we change or personalize the message sent automatically by postfix such as the "mail delivery system" message Thanks a lot. Mick

Re: Header/body checks question, problem.

2009-01-04 Thread mouss
KLaM Postmaster a écrit : > I am having a problem with some legitimate emails being rejected by > header and/or body checks. Both the header and body checks are from > Jeffrey Posluns' write up,without any mods. > Among the stuff being rejected is the output of pflogsumm, I run a daily > a report a

Re: syslog convert to lowercase

2009-01-04 Thread Ramprasad
Terry Carmen wrote: Henrik K wrote: On Sat, Jan 03, 2009 at 04:51:04PM +0530, ram wrote: Can all the logs be made in lowercase only atleast the sender and the recipient emailids Since we have huge logs, searching for something in the logs is quite expensive. And doing it case insensitive rea

Re: Change message error

2009-01-04 Thread Sahil Tandon
Michael JOLY wrote: > Can we change or personalize the message sent automatically by postfix such > as the "mail delivery system" message http://www.postfix.org/bounce.5.html http://www.postfix.org/postconf.5.html#bounce_template_file -- Sahil Tandon

Re: localhost and smarthost

2009-01-04 Thread mouss
Asif Iqbal a écrit : > Hi All > > All my email gets relayed thru gmail as it should. But how do I tell > it to send all localemails to local spool and not send it to gmail? > what kind of "localemails"? if these use a local domain, add the domain to mydestination. if they use an external domain,

Problem with notification message

2009-01-04 Thread Michael JOLY
Hello, i have a problem with notification when i sent a mail. I receive an error message but the mail is correctly sent and receive. It's a problem with the virtual address in my posfix. This is the error : This is the mail system at host x I'm sorry to have to inform you that you

Re: Relaying/forwarding query

2009-01-04 Thread Sahil Tandon
Nigel Gilbert wrote: > I have Postfix running on dusty.soc.surrey.ac.uk. I would like mail from > the internet addressed to unknown local users on this server (e.g. to > x...@soc.surrey.ac.uk) to be re-addressed and forwarded Before continuing, please clarify: are the unknown local users known

Re: Compile error Slackware 12.2 postfix 2.5.6 smtp_reuse.c

2009-01-04 Thread Wietse Venema
This is the result of a cut-and-paste error. I have re-issued the releases. Wietse

Re: Problem with notification message

2009-01-04 Thread Sahil Tandon
Michael JOLY wrote: > Hello, i have a problem with notification when i sent a mail. I receive an > error message but the mail is correctly sent and receive. It's a problem > with the virtual address in my posfix. How did you diagnose the problem to your virtual address? > This is the error : >

Re: Allowing return email

2009-01-04 Thread Ralf Hildebrandt
* mouss : > Ralf Hildebrandt a écrit : > > * postfix@cmulcahy.com : > >> Greetings: > >> > >> I'm running several spam-filtering tools including Postgrey, > >> SpamAssassin, etc. I would like to make replying to mail I have sent > >> easier. > >> > >> How can I automatically white-list ad

Re: Allowing return email

2009-01-04 Thread Ralf Hildebrandt
* postfix@cmulcahy.com : > Greetings: > > I'm running several spam-filtering tools including Postgrey, > SpamAssassin, etc. I would like to make replying to mail I have sent > easier. > > How can I automatically white-list addresses to whom I have sent email? SpamAssassin has "PenPals"

Re: localhost and smarthost

2009-01-04 Thread mouss
Asif Iqbal a écrit : > On Sun, Jan 4, 2009 at 6:11 AM, mouss wrote: >> Asif Iqbal a écrit : >>> Hi All >>> >>> All my email gets relayed thru gmail as it should. But how do I tell >>> it to send all localemails to local spool and not send it to gmail? > > I see qmgr sends the mail to smtp and loc

Re: Relaying/forwarding query

2009-01-04 Thread Nigel Gilbert
On 04/01/2009 19:33, "Sahil Tandon" wrote: > Nigel Gilbert wrote: > >> I have Postfix running on dusty.soc.surrey.ac.uk. I would like mail from >> the internet addressed to unknown local users on this server (e.g. to >> x...@soc.surrey.ac.uk) to be re-addressed and forwarded > > Before cont

Re: Problem with notification message

2009-01-04 Thread Michael JOLY
yes my system is . This is the mail system at host x in the example after, z...@z.fr is the virtual address and yyy...@localhost is the local account. (expanded from z...@z.fr): data format error. Command output: : Mailbox does not exist : Mailbox does not

Compile error Slackware 12.2 postfix 2.5.6 smtp_reuse.c

2009-01-04 Thread memmas
Hi.. I'm using slackware 12.2 and I get the following error when trying to compile postfix-2.5.6 gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_SSL -I/usr/include/openssl -DHAS_LDAP -I/usr/include -DHAS_MYSQL -I/usr/include/mysql -DHAS_P

Re: How to relay AND store all emails on a gateway ?

2009-01-04 Thread mouss
Antony a écrit : > I slept some hours, my mind is relaxed and less confused than those > last days, let's go ! ;o) > > Thanks to Wietse and mouss, my gateway is now fully functional, and relays > emails to my server : >Internet --> mx1.mydomain.com[my gateway with postfix] --> > mx2.mydomain.c

Re: Relaying/forwarding query

2009-01-04 Thread mouss
Nigel Gilbert a écrit : > > > On 04/01/2009 19:33, "Sahil Tandon" wrote: > >> Nigel Gilbert wrote: >> >>> I have Postfix running on dusty.soc.surrey.ac.uk. I would like mail from >>> the internet addressed to unknown local users on this server (e.g. to >>> x...@soc.surrey.ac.uk) to be re-addre

Evaluation of maps in local or virtual address classes

2009-01-04 Thread Patrick Ben Koetter
Maps in $relay_recipient_maps are evaluated as lists - only the LHS is examined to determine if a recipient is listed and therefore a valid recipient. Does the same apply for local_recipient_maps, virtual_alias_maps and virtual_mailbox_maps when Postfix tries to determine if a given recipient is a

Re: Relaying/forwarding query

2009-01-04 Thread Nigel Gilbert
On 04/01/2009 20:11, "mouss" wrote: > Nigel Gilbert a écrit : >> >> >> On 04/01/2009 19:33, "Sahil Tandon" wrote: >> >>> Nigel Gilbert wrote: >>> I have Postfix running on dusty.soc.surrey.ac.uk. I would like mail from the internet addressed to unknown local users on this serve

RE: How to relay AND store all emails on a gateway ?

2009-01-04 Thread Antony
Indeed it should work. But, I was not clear, my mistaken. I do not wish to use dovecot as a mail server, but only as an alternative LDA for Postfix (+ for SMTP SASL purposes). Possible ? And if not, are virtual_alias_maps or recipient_bcc_maps forward via smtp the solution ? It seems for me a "he

Re: localhost and smarthost

2009-01-04 Thread Asif Iqbal
On Sun, Jan 4, 2009 at 2:43 PM, mouss wrote: > Asif Iqbal a écrit : >> On Sun, Jan 4, 2009 at 6:11 AM, mouss wrote: >>> Asif Iqbal a écrit : Hi All All my email gets relayed thru gmail as it should. But how do I tell it to send all localemails to local spool and not send it to

Re: Problem with notification message

2009-01-04 Thread Noel Jones
Michael JOLY wrote: yes my system is . This is the mail system at host x in the example after, z...@z.fr is the virtual address and yyy...@localhost is the local account. mailto:yyy...@localhost>> (expanded from z.

Re: Evaluation of maps in local or virtual address classes

2009-01-04 Thread Victor Duchovni
On Sun, Jan 04, 2009 at 09:31:42PM +0100, Patrick Ben Koetter wrote: > Maps in $relay_recipient_maps are evaluated as lists - only the LHS is > examined to determine if a recipient is listed and therefore a valid > recipient. Only used in smtpd(8) where no rewriting takes place, just address vali

Re: localhost and smarthost

2009-01-04 Thread Sahil Tandon
Asif Iqbal wrote: > > - what do you mean by "localemails"? which mail do you want to deliver > > locally? > > I meant mails for local domain. My laptop does not really have a valid > domain name. > So any mail to say iqb...@ghar-iqbala.lan or say r...@ghar-iqbala.lan > should go to > local Maildi

Re: Evaluation of maps in local or virtual address classes

2009-01-04 Thread Patrick Ben Koetter
* Victor Duchovni : ... > > Sending them off to a LMTP server is a transport map job: > > > > recipi...@example.com lmtp:localhost > > The correct syntax (if the default port is OK) is: > > recipi...@example.com lmtp:inet:localhost Maybe its just me, but I had not looked for t

Different Postfix master.cf entry depending on outgoing domain.

2009-01-04 Thread Adam
What I'd like to do : Append different altermime disclaimers depending on outbound domain. What I have : I've setup a 'middle-man' box which is only going to run postfix and altermime. It will then fwd via relayhost to my outbound servers (also postfix). I understand that amavisd-new has beg

Re: localhost and smarthost

2009-01-04 Thread Asif Iqbal
On Sun, Jan 4, 2009 at 6:35 PM, Sahil Tandon wrote: > Asif Iqbal wrote: > >> > - what do you mean by "localemails"? which mail do you want to deliver >> > locally? >> >> I meant mails for local domain. My laptop does not really have a valid >> domain name. >> So any mail to say iqb...@ghar-iqbala.

Re: Different Postfix master.cf entry depending on outgoing domain.

2009-01-04 Thread Sahil Tandon
Adam wrote: > Is there a way I can have mail sent through different "smtpd's" > depending on the outgoing domain? If so I could throw a different > disclaimer depending. http://www.postfix.org/transport.5.html -- Sahil Tandon

Re: Evaluation of maps in local or virtual address classes

2009-01-04 Thread Victor Duchovni
On Mon, Jan 05, 2009 at 12:42:10AM +0100, Patrick Ben Koetter wrote: > * Victor Duchovni : > > ... > > > > Sending them off to a LMTP server is a transport map job: > > > > > > recipi...@example.com lmtp:localhost > > > > The correct syntax (if the default port is OK) is: > > > > rec

Postfix stable release 2.5.6, 2.4.10 and 2.3.16 available

2009-01-04 Thread Wietse Venema
Postfix stable releases 2.5.6, 2.4.10 and 2.3.16 catch up on fixes that were applied in the past three months. Postfix versions 2.2 and earlier are no longer updated. - Postfix 2.5: the SMTP server did not ask for a client certificate with "smtpd_tls_req_ccert = yes". Reported by Rob Foehl. - Po

Re: How to relay AND store all emails on a gateway ?

2009-01-04 Thread mouss
Antony a écrit : > Indeed it should work. But, I was not clear, my mistaken. > I do not wish to use dovecot as a mail server, but only as an alternative > LDA for Postfix (+ for SMTP SASL purposes). > Possible ? > hmmm. sorry. I'm not sure to understand... my understanding was that you wanted

per recipient transport [Was: Evaluation of maps in local or virtual address classes]

2009-01-04 Thread mouss
Victor Duchovni a écrit : > [snip] > Why per-recipient transport lookups? Often better to rewrite to a domain > where the entire domain is handled by lmtp(8). > is there a benefit in avoiding per recipient transports? or said otherwise: is there a way to tell postfix to only lookup domains? >>

Re: Different Postfix master.cf entry depending on outgoing domain.

2009-01-04 Thread mouss
Adam a écrit : > What I'd like to do : > > Append different altermime disclaimers depending on outbound domain. > > > What I have : > > I've setup a 'middle-man' box which is only going to run postfix and > altermime. It will then fwd via relayhost to my outbound servers > (also postfix). > >

Re: per recipient transport [Was: Evaluation of maps in local or virtual address classes]

2009-01-04 Thread Victor Duchovni
On Mon, Jan 05, 2009 at 03:31:52AM +0100, mouss wrote: > Victor Duchovni a ?crit : > > [snip] > > Why per-recipient transport lookups? Often better to rewrite to a domain > > where the entire domain is handled by lmtp(8). > > > > is there a benefit in avoiding per recipient transports? Simplici

Re: per recipient transport [Was: Evaluation of maps in local or virtual address classes]

2009-01-04 Thread mouss
Victor Duchovni a écrit : > On Mon, Jan 05, 2009 at 03:31:52AM +0100, mouss wrote: > >> Victor Duchovni a ?crit : >>> [snip] >>> Why per-recipient transport lookups? Often better to rewrite to a domain >>> where the entire domain is handled by lmtp(8). >>> >> is there a benefit in avoiding per rec

Re: per recipient transport [Was: Evaluation of maps in local or virtual address classes]

2009-01-04 Thread Victor Duchovni
On Mon, Jan 05, 2009 at 03:49:55AM +0100, mouss wrote: > Victor Duchovni a ?crit : > > On Mon, Jan 05, 2009 at 03:31:52AM +0100, mouss wrote: > > > >> Victor Duchovni a ?crit : > >>> [snip] > >>> Why per-recipient transport lookups? Often better to rewrite to a domain > >>> where the entire domai

Re: per recipient transport [Was: Evaluation of maps in local or virtual address classes]

2009-01-04 Thread Wietse Venema
mouss: > Victor Duchovni a ?crit : > > On Mon, Jan 05, 2009 at 03:31:52AM +0100, mouss wrote: > > > >> Victor Duchovni a ?crit : > >>> [snip] > >>> Why per-recipient transport lookups? Often better to rewrite to a domain > >>> where the entire domain is handled by lmtp(8). > >>> > >> is there a be

Re: reject_rbl_client after check_policy_service

2009-01-04 Thread Rajkumar S
On Fri, Jan 2, 2009 at 10:37 PM, mouss wrote: > Remove the "defer" keyword. Return >"450 4.7.1 Greylisted Come back after 30 seconds" > with no "defer" before it. Thanks, that finally did the trick :) raj

Maildrop "user unknown. Command output: Invalid user specified"

2009-01-04 Thread tôba
Hello all, With postfix and maildrop, I have this issue. Mails cannot be delivered and in mail.log, I have this: ...relay=maildrop, delay=0.81, delays=0.8/0/0/0.01, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. ) I saw at google that this problem happenned alrea

RE: How to relay AND store all emails on a gateway ?

2009-01-04 Thread Antony Simonneau
Forget dovecot. For each incoming email, basically I want both to store it in Maildir format and relay it via SMTP. Abruti -Message d'origine- De : mouss [mailto:mo...@ml.netoyen.net] Envoyé : lundi 5 janvier 2009 03:23 À : anto_neohap...@abruti.org Cc : postfix-users@postfix.org Objet