niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Postfix
question about virtual alias
Post new topic   Reply to topic Page 2 of 2 [23 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2
Author Message
Guest






PostPosted: Mon Feb 28, 2005 12:35 pm    Post subject: Re: question about virtual alias Reply with quote

On Mon, 28 Feb 2005 14:29:17 +0100
tp22a@softhome.net wrote:

Quote:
With the above entries the mailflow is then:
unfiltered --> aaa.bbb.ccc.ddd --> cleanup --> qmgr --> lmtp --> amavis --> pre-cleanup --> ...

Or is it the following way (which would not be what I wanted):
unfiltered --> aaa.bbb.ccc.ddd --> cleanup --> qmgr --> lmtp --> pre-cleanup --> amavis --> ...


AHHA!!

The second one would be the one I would like and the first one is the one I would NOT like.
Back to top
Victor Duchovni
*nix forums Guru


Joined: 28 Feb 2005
Posts: 2927

PostPosted: Mon Feb 28, 2005 12:36 pm    Post subject: Re: question about virtual alias Reply with quote

On Mon, Feb 28, 2005 at 02:29:17PM +0100, tp22a@softhome.net wrote:

Quote:
In my master.cf I have the following entry for amavis:
# AV scan filter
smtp-amavis unix - - n - 2 lmtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

Why would lmtp(Cool pay attention to smtp_<mumble> parameters???

Quote:
Could I basicly hook up the pre-cleanup in this entry and leave all the other with no "-o cleanup_service_name" entry?

No, this is a delivery agent (mail going out of Postfix) not a submission
service (mail coming into Postfix). The cleanup service override is used
when needed with smtpd(Cool, pickup(Cool and qmqpd(Cool.

The entire problem is addressed much better in 2.1 and later via
receive_override_options (and it that is not enough, use multiple
Postfix instances, search the archives, you don't need to ask here).

--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo@postfix.org?body=unsubscribe%20postfix-users>
Back to top
Guest






PostPosted: Mon Feb 28, 2005 12:46 pm    Post subject: Re: question about virtual alias Reply with quote

On Mon, 28 Feb 2005 08:36:01 -0500
Victor Duchovni <Victor.Duchovni@MorganStanley.com> wrote:

Quote:
On Mon, Feb 28, 2005 at 02:29:17PM +0100, tp22a@softhome.net wrote:

In my master.cf I have the following entry for amavis:
# AV scan filter
smtp-amavis unix - - n - 2 lmtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

Why would lmtp(Cool pay attention to smtp_<mumble> parameters???

Ouch. This was left there from the time, when I used smtp instead of lmtp. Wink


Quote:
Could I basicly hook up the pre-cleanup in this entry and leave all the other with no "-o cleanup_service_name" entry?

No, this is a delivery agent (mail going out of Postfix) not a submission
service (mail coming into Postfix). The cleanup service override is used
when needed with smtpd(Cool, pickup(Cool and qmqpd(Cool.

Okay. I understand that now.


Quote:
The entire problem is addressed much better in 2.1 and later via
receive_override_options (and it that is not enough, use multiple
Postfix instances, search the archives, you don't need to ask here).

Will do. Sometimes is hard to read stuff not written in my native language. When I ask, then I mostly get an answer and I can interactive get to my point. Just reading a document and having no one to ask is sometime not very easy. Anyway... Thanks for pointing me to the correct direction.



Quote:
--
Viktor.

Steve



Quote:
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
mailto:majordomo@postfix.org?body=unsubscribe%20postfix-users
Back to top
mouss
*nix forums Guru


Joined: 27 Feb 2005
Posts: 1947

PostPosted: Mon Feb 28, 2005 9:30 pm    Post subject: Re: question about virtual alias Reply with quote

Victor Duchovni wrote:
Quote:
On Mon, Feb 28, 2005 at 12:50:49PM +0100, tp22a@softhome.net wrote:


you should use pre-cleanup in pickup. otherwise, address manipulations
will be applied twice for mail submitted by sendmail (once by pickup and
once by 127.0.0.1:10025), which may cause problems with virtual aliases
and other things.


If I do that, then I get exactly this "user unknow" error.



The advice is wrong unless you also set a content_filter for pickup.
If you don't need/want to scan locally submitted mail, you must not
direct pickup at "pre-cleanup".

ahem? so it's write to direct both pickup and 127.1:10025 to cleanup,

which means running through virtual aliases twice?
Back to top
Magnus Bäck
*nix forums Guru


Joined: 26 Feb 2005
Posts: 1366

PostPosted: Mon Feb 28, 2005 9:46 pm    Post subject: Re: question about virtual alias Reply with quote

On Monday, February 28, 2005 at 23:30 CET,
mouss <usebsd@free.fr> wrote:

Quote:
Victor Duchovni wrote:

The advice is wrong unless you also set a content_filter for pickup.
If you don't need/want to scan locally submitted mail, you must not
direct pickup at "pre-cleanup".

ahem? so it's write to direct both pickup and 127.1:10025 to cleanup,
which means running through virtual aliases twice?

What's right depends on the context. In this case, virtual rewriting
should be disabled for the cleanup(Cool used by the submission daemon
(smtpd(Cool or pickup(Cool) if content filtering is enabled for the same
daemon. If filtering is disabled, virtual rewriting must be enabled.

--
Magnus Bäck
magnus@dsek.lth.se
Back to top
mouss
*nix forums Guru


Joined: 27 Feb 2005
Posts: 1947

PostPosted: Mon Feb 28, 2005 9:52 pm    Post subject: Re: question about virtual alias Reply with quote

mouss wrote:
Quote:

The advice is wrong unless you also set a content_filter for pickup.
and conversely, the advice is right unless you wanna do something else.

after all, it's all about default configs vs special configs...

Quote:
If you don't need/want to scan locally submitted mail, you must not
direct pickup at "pre-cleanup".
and thus scanning the same message twice?

ahem? so it's write to direct both pickup and 127.1:10025 to cleanup,
which means running through virtual aliases twice?


I meant "it's right" and not "it's write".
Back to top
mouss
*nix forums Guru


Joined: 27 Feb 2005
Posts: 1947

PostPosted: Mon Feb 28, 2005 9:57 pm    Post subject: Re: question about virtual alias Reply with quote

Magnus Bäck wrote:

Quote:
What's right depends on the context. In this case, virtual rewriting
should be disabled for the cleanup(Cool used by the submission daemon
(smtpd(Cool or pickup(Cool) if content filtering is enabled for the same
daemon. If filtering is disabled, virtual rewriting must be enabled.


whatever is the theory, the situation here depends on nothing. if you
use virtual aliasing, canonical stuff, ... in both pickup and in the
post-filter postfix, you'll run into problems. If I'm mistaken, I'm
ready to get corrected, but I don't see why one should do virtual
aliasing/addr manips/... at both pickup and in the after filter smtpd.
Back to top
Magnus Bäck
*nix forums Guru


Joined: 26 Feb 2005
Posts: 1366

PostPosted: Mon Feb 28, 2005 10:03 pm    Post subject: Re: question about virtual alias Reply with quote

On Monday, February 28, 2005 at 23:57 CET,
mouss <usebsd@free.fr> wrote:

Quote:
Magnus Bäck wrote:

What's right depends on the context. In this case, virtual rewriting
should be disabled for the cleanup(Cool used by the submission daemon
(smtpd(Cool or pickup(Cool) if content filtering is enabled for the same
daemon. If filtering is disabled, virtual rewriting must be enabled.

whatever is the theory, the situation here depends on nothing. if you
use virtual aliasing, canonical stuff, ... in both pickup and in the
post-filter postfix, you'll run into problems.

Possibly, IF CONTENT FILTERING IS ENABLED for mail injected via
sendmail(1). This was not the case with the OP, hence his problem.
Pay attention.

Quote:
If I'm mistaken, I'm ready to get corrected, but I don't see why one
should do virtual aliasing/addr manips/... at both pickup and in the
after filter smtpd.

There's hardly any reason to do so, but in many cases it doesn't hurt
either.

--
Magnus Bäck
magnus@dsek.lth.se
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 2 of 2 [23 Posts] Goto page:  Previous  1, 2
View previous topic :: View next topic
The time now is Sat Jan 10, 2009 3:20 am | All times are GMT
navigation Forum index » Apps » Postfix
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Newbie question: How to forward a domain to a mailbox? leei Postfix 0 Fri Aug 24, 2007 4:55 pm
No new posts configuration question for httpd Karl Wang Apache 1 Fri Jul 21, 2006 2:10 pm
No new posts nim problem/question Ron AIX 0 Fri Jul 21, 2006 1:57 pm
No new posts question for JAVA developer who r using postgres sql as b... deepak pal PostgreSQL 1 Fri Jul 21, 2006 9:00 am

Loans | Internet Advertising | Guitar Lessons | Myspace Backgrounds | Aishwarya Rai
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 6.6678s ][ Queries: 16 (6.5169s) ][ GZIP on - Debug on ]