about relay server

2009-03-09 Thread tom lee
hello, I checked the doc about the mail relay in postfix and still not clear about two issues. I have mail sending from machine A to machine B, machine B is a relay server forwarding the email to machine C (target machine). I want to make sure there is no emails bouncing back from either machin

Re: v2.5.5 showq and postcat date/time stamp discrepancy

2009-03-09 Thread Victor Duchovni
On Tue, Mar 10, 2009 at 01:01:37AM -0400, Glen B wrote: > > Hi, > > Postfix 2.5.5 on Debian > > I've just noticed a discrepancy between showq (postqueue -p) and postcat. > I've looked through the code, played with the conversion code in postcat > and I honestly can not figure out what's going wr

v2.5.5 showq and postcat date/time stamp discrepancy

2009-03-09 Thread Glen B
Hi, Postfix 2.5.5 on Debian I've just noticed a discrepancy between showq (postqueue -p) and postcat. I've looked through the code, played with the conversion code in postcat and I honestly can not figure out what's going wrong: -Queue ID- --Size-- Arrival Time -Sender/Recipient

Re: per-user relay destinations

2009-03-09 Thread Barney Desmond
2009/3/10 Veiko Kukk : > transport.map includes rows like this: > > u...@foo.bar smtp:some.smtp.server Almost correct - you'll probably want to put square-brackets around the server's hostname to prevent undesirable lookups. Like so: u...@example.com smtp:[new.mail.server] Without square bra

Re: understanding reject_unknown_client

2009-03-09 Thread mouss
Krishna Murthy a écrit : > Hi, > > I have reject_unknown_client in my smtpd_recipient_restrictions and > have 2 questions regarding the working of this option. I looked up the > documentation, but would love to cross check my understanding with other > users. > > 1. > > I have noticed that the

Re: hold all relayed mail by default

2009-03-09 Thread mouss
Costin Guşă a écrit : > On Mon, Mar 9, 2009 at 3:55 PM, Jorey Bump wrote: >> Charles Marcus wrote, at 03/09/2009 09:42 AM: >>> On 3/9/2009, Costin Gu_ (costi...@gmail.com) wrote: yes, it's true that people expect instant delivery; however I was thinking at short delays such as 5 minutes

Re: hold all relayed mail by default

2009-03-09 Thread mouss
Charles Marcus a écrit : > On 3/9/2009, Jorey Bump (l...@joreybump.com) wrote: >> Isn't this best implemented at the MUA level? At the very least, a user >> can simply save drafts of all composed email, then review & send >> messages periodically. Not only does this address the problem, it is >> mo

Re: sender IP check

2009-03-09 Thread mouss
K bharathan a écrit : > hi all > on my smtp out i want to put ''reject_rbl_client zen.spamhaus.org > '' since many local ADSL dynamic ips are in PBL > ; is it desirable? > where i can put this? this relay machine does only sending out; if this is "only out", then it shoul

Re: virtual_alias_maps

2009-03-09 Thread mouss
LuKreme a écrit : > On 9-Mar-2009, at 06:31, Noel Jones wrote: >> LuKreme wrote: >>> On 8-Mar-2009, at 19:39, Sahil Tandon wrote: What happens if you set: virtual_alias_domains = in main.cf? >>> Then all mail to local (non virtual) users bounces with a Relay >>> access d

Re: Content Filters - Body Matching

2009-03-09 Thread Noel Jones
Post Freak wrote: Hello, I have a restriction that mandates only certain types of email to be allowed outbound. If an email does not match a pattern, they want that email BCCed to another account. Reading the documentation, I see that body_checks isn't a good way to filter multiple lines and t

Re: Content Filters - Body Matching

2009-03-09 Thread Evan Platt
At 01:38 PM 3/9/2009, you wrote: Hello, I have a restriction that mandates only certain types of email to be allowed outbound. If an email does not match a pattern, they want that email BCCed to another account. Reading the documentation, I see that body_checks isn't a good way to filter multi

Content Filters - Body Matching

2009-03-09 Thread Post Freak
Hello, I have a restriction that mandates only certain types of email to be allowed outbound. If an email does not match a pattern, they want that email BCCed to another account. Reading the documentation, I see that body_checks isn't a good way to filter multiple lines and that I should use som

Re: virtual_alias_maps

2009-03-09 Thread LuKreme
On 9-Mar-2009, at 06:31, Noel Jones wrote: LuKreme wrote: On 8-Mar-2009, at 19:39, Sahil Tandon wrote: What happens if you set: virtual_alias_domains = in main.cf? Then all mail to local (non virtual) users bounces with a Relay access denied error. Sounds as if you have (unintentionall

Re: Outbound mail routing

2009-03-09 Thread Pascal Volk
On 09.03.2009 19:10 Zachary Fortna wrote: > Is it possible to route outbound messages based upon the domain of the > from address? For example: > > If u...@example.com sends and outbound message > it is routed to host1.mailrelay.com and if u...@test.com >

Re: Outbound mail routing

2009-03-09 Thread Victor Duchovni
On Mon, Mar 09, 2009 at 02:10:03PM -0400, Zachary Fortna wrote: > Is it possible to route outbound messages based upon the domain of the from > address? For example: > > If u...@example.com sends and outbound message it is > routed to host1.mailrelay.com and if u...@te

Outbound mail routing

2009-03-09 Thread Zachary Fortna
Is it possible to route outbound messages based upon the domain of the from address? For example: If u...@example.com sends and outbound message it is routed to host1.mailrelay.com and if u...@test.com sends and outbound message it is routed to ho

Re: per-user relay destinations

2009-03-09 Thread Veiko Kukk
Aaron Zuercher wrote: Hello, I have setup a box running postfix+amavis+spamassasin to act as a mail gateway. I currently have an older postfix box doing mail gateway duties now. I'd like to run some live tests on the new spam box by forwarding some of the users mail from the current gateway

Re: hold all relayed mail by default

2009-03-09 Thread Noel Jones
Costin Guşă wrote: however i'm wondering if my proposed implementation would *really* catch not only all relayed mail but also internal clients sending mail to internal clients ? To only catch outbound mail, use something like this (note smtpd_SENDER_restrictions): # main.cf smtpd_sender_re

Re: hold all relayed mail by default

2009-03-09 Thread Costin Guşă
On Mon, Mar 9, 2009 at 4:02 PM, Charles Marcus wrote: > On 3/9/2009, Jorey Bump (l...@joreybump.com) wrote: >> Isn't this best implemented at the MUA level? At the very least, a user >> can simply save drafts of all composed email, then review & send >> messages periodically. Not only does this ad

per-user relay destinations

2009-03-09 Thread Aaron Zuercher
Hello, I have setup a box running postfix+amavis+spamassasin to act as a mail gateway. I currently have an older postfix box doing mail gateway duties now. I'd like to run some live tests on the new spam box by forwarding some of the users mail from the current gateway to the new box for processi

Re: postfix filter and CR LF.CR LF - New Issue

2009-03-09 Thread Victor Duchovni
On Mon, Mar 09, 2009 at 04:50:29PM +0100, Jordi Moles Blanco wrote: > after your comments I thought I had "fixed" my filter and everything seemed > to work fine. I only replaced \n.\n with \n..\n in the body of the message. You don't change message bodies before transmission, you follow RFCs 821

RE: Postoffice with virtual mailbox and a Maildrop issue [SOLVED]

2009-03-09 Thread Rocco Scappatura
Hello, > > Rocco Scappatura a écrit : > > > [snip] > > > Why the message is not delivered immediately to the virtual mailbox > > after > > > vacation filter? > > > > > > > because the domain is not listed as a virtual mailbox domain > > At first glance, I shoud say as above too, but I swear that

Re: postfix filter and CR LF.CR LF - New Issue

2009-03-09 Thread Jordi Moles Blanco
En/na Jordi Moles Blanco ha escrit: En/na Magnus Bäck ha escrit: On Thu, March 5, 2009 10:13 am, Jordi Moles Blanco said: En/na martijn.list ha escrit: You are probably forgetting to convert the single dot (.) to dot-dot (..) See RFC 2821 section 4.5.2 Transparency thanks for

Re: understanding reject_unknown_client

2009-03-09 Thread Noel Jones
Krishna Murthy wrote: Hi, I have reject_unknown_client in my smtpd_recipient_restrictions and have 2 questions regarding the working of this option. I looked up the documentation, but would love to cross check my understanding with other users. http://www.postfix.org/postconf.5.html#reje

Re: understanding reject_unknown_client

2009-03-09 Thread Victor Duchovni
On Mon, Mar 09, 2009 at 08:46:12PM +0530, Krishna Murthy wrote: > I have reject_unknown_client in my smtpd_recipient_restrictions Don't. This restriction is to aggressive. It is only useful in combination with other tests (applied to specific netblocks, sender domains, ...) > The above behavior

understanding reject_unknown_client

2009-03-09 Thread Krishna Murthy
Hi, I have reject_unknown_client in my smtpd_recipient_restrictions and have 2 questions regarding the working of this option. I looked up the documentation, but would love to cross check my understanding with other users. 1. I have noticed that the following scenario results in rejection with

Re: hold all relayed mail by default

2009-03-09 Thread Noel Jones
Charles Marcus wrote: On 3/9/2009, Jorey Bump (l...@joreybump.com) wrote: Isn't this best implemented at the MUA level? At the very least, a user can simply save drafts of all composed email, then review & send messages periodically. Not only does this address the problem, it is more convenient

Re: hold all relayed mail by default

2009-03-09 Thread Costin Guşă
On Mon, Mar 9, 2009 at 3:55 PM, Jorey Bump wrote: > Charles Marcus wrote, at 03/09/2009 09:42 AM: >> On 3/9/2009, Costin Gu_  (costi...@gmail.com) wrote: >>> yes, it's true that people expect instant delivery; however I was >>> thinking at short delays such as 5 minutes, since most regrettable >>>

Re: Rewrite body messages

2009-03-09 Thread Wietse Venema
Guillaume Rehm: > Hi list, > > I would known if Postfix is able to rewrite body messages. > > I would translate mails comes from an application by Pattern > > Exemple: > > From: t...@domain.com To: u...@domain.com Subject:MyApp Body:[Item1] > toto [Item2] titi > > To > > From: t...@domain.co

Rewrite body messages

2009-03-09 Thread Guillaume Rehm
Hi list, I would known if Postfix is able to rewrite body messages. I would translate mails comes from an application by Pattern Exemple: From: t...@domain.com To: u...@domain.com Subject:MyApp Body:[Item1] toto [Item2] titi To From: t...@domain.com To: u...@domain.com Subject:MyApp Body:[

Re: hold all relayed mail by default

2009-03-09 Thread Charles Marcus
On 3/9/2009, Jorey Bump (l...@joreybump.com) wrote: > Isn't this best implemented at the MUA level? At the very least, a user > can simply save drafts of all composed email, then review & send > messages periodically. Not only does this address the problem, it is > more convenient for everyone, inc

Re: hold all relayed mail by default

2009-03-09 Thread Jorey Bump
Charles Marcus wrote, at 03/09/2009 09:42 AM: > On 3/9/2009, Costin Gu_ (costi...@gmail.com) wrote: >> yes, it's true that people expect instant delivery; however I was >> thinking at short delays such as 5 minutes, since most regrettable >> errors are discovered within the next few seconds follow

Re: hold all relayed mail by default

2009-03-09 Thread Charles Marcus
On 3/9/2009, Costin Gu_ (costi...@gmail.com) wrote: > yes, it's true that people expect instant delivery; however I was > thinking at short delays such as 5 minutes, since most regrettable > errors are discovered within the next few seconds following the event, > so keeping the mail in queue for e

Re: Does main.cf need world readable?

2009-03-09 Thread Wietse Venema
Victor Duchovni: > On Sun, Mar 08, 2009 at 08:47:53PM -0700, Jacky Chan wrote: > > > > > Hi all, > > > > I found when I set main.cf to 740, owner is root and group is postfix. > > > > [11:41:55][use...@nx1:~]# echo "testing" | mail -s "testing" root > > [11:41:58][use...@nx1:~]# send-mail: fata

Re: Accepting sender with MX _only_

2009-03-09 Thread Wietse Venema
Halassy Zolt??n: > > can you show an example? > > postfix log (my contract forbids to put client data here, so masqueraded > the real hostnames and IPs): > > Mar 6 19:01:41 mail postfix/smtpd[6930]: NOQUEUE: reject: RCPT from > www.XXX.hu[X.X.X.X]: 450 4.1.7 : Sender address > rejected: unver

Re: hold all relayed mail by default

2009-03-09 Thread Costin Guşă
On Mon, Mar 9, 2009 at 2:43 PM, Noel Jones wrote: > Costin Guşă wrote: >> [...] >> >> I'd like to mimic M$ Exchange "recall" behaviour for emails sent by >> relay-allowed clients. >> [...] > > I don't think this is a good idea at all. > > Folks by now somewhat expect mail being near real time,

Re: Does main.cf need world readable?

2009-03-09 Thread Victor Duchovni
On Sun, Mar 08, 2009 at 08:47:53PM -0700, Jacky Chan wrote: > > Hi all, > > I found when I set main.cf to 740, owner is root and group is postfix. > > [11:41:55][use...@nx1:~]# echo "testing" | mail -s "testing" root > [11:41:58][use...@nx1:~]# send-mail: fatal: open /etc/postfix/main.cf: > Per

Re: hold all relayed mail by default

2009-03-09 Thread Noel Jones
Costin Guşă wrote: Hello, I'm using postfix postfix-2.3.3-2 x86 configured for a single domain. Clients are allowed to relay only after they have performed SMTP AUTH or if they connect from $mynetworks. (postconf -n posted at http://pastebin.ca/1356405) I'd like to mimic M$ Exchange "recall" beh

Re: virtual_alias_maps

2009-03-09 Thread Noel Jones
LuKreme wrote: On 8-Mar-2009, at 19:39, Sahil Tandon wrote: What happens if you set: virtual_alias_domains = in main.cf? Then all mail to local (non virtual) users bounces with a Relay access denied error. Sounds as if you have (unintentionally)? defined all your local domains as

RE: Postoffice with virtual mailbox and a Maildrop issue

2009-03-09 Thread Rocco Scappatura
Thanks mouss, > Rocco Scappatura a écrit : > > [snip] > > Why the message is not delivered immediately to the virtual mailbox > after > > vacation filter? > > > > because the domain is not listed as a virtual mailbox domain At first glance, I shoud say as above too, but I swear that the query i

Re: Variables for addresses in master.cf

2009-03-09 Thread Charles Marcus
On 3/8/2009, Wietse Venema (wie...@porcupine.org) wrote: > It is not created with Star Trek transporter beams that materialize a > complete object all at once. I am very disappointed. I began using postfix based solely on the assurance of one person that Start Trek transporter beams could most sur

Re: Accepting sender with MX _only_

2009-03-09 Thread Halassy Zoltán
can you show an example? postfix log (my contract forbids to put client data here, so masqueraded the real hostnames and IPs): Mar 6 19:01:41 mail postfix/smtpd[6930]: NOQUEUE: reject: RCPT from www.XXX.hu[X.X.X.X]: 450 4.1.7 : Sender address rejected: unverified address: connect to www.XX

hold all relayed mail by default

2009-03-09 Thread Costin Guşă
Hello, I'm using postfix postfix-2.3.3-2 x86 configured for a single domain. Clients are allowed to relay only after they have performed SMTP AUTH or if they connect from $mynetworks. (postconf -n posted at http://pastebin.ca/1356405) I'd like to mimic M$ Exchange "recall" behaviour for emails sen

Re: sender IP check

2009-03-09 Thread ram
On Mon, 2009-03-09 at 09:05 +0200, K bharathan wrote: > hi all > on my smtp out i want to put ''reject_rbl_client zen.spamhaus.org'' > since many local ADSL dynamic ips are in PBL ; is it desirable? > where i can put this? this relay machine does only sending out; > help appreciated > > For ou

sender IP check

2009-03-09 Thread K bharathan
hi all on my smtp out i want to put ''reject_rbl_client zen.spamhaus.org'' since many local ADSL dynamic ips are in PBL ; is it desirable? where i can put this? this relay machine does only sending out; help appreciated