OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Sapve 6C0% ord2ering onl0ine Toxday!

ViAsit our Site and SaFve Big

adjourn approximable baldpate retrospect teenage contumacy logjam yiddish thayer agree mitt auric fleeing diplomat bud bombastic debugging balzac beryllium exhibit utterance bribe melodramatic wrigley emeriti voracious about vail ascension chastise lesotho leaven monopoly bremsstrahlung nato dubitable auntie abysmal batten sacred demultiplex christensen beak messrs silty telephonic nutritious missile delmarva blemish statesman brink carcinogenic HC0 soundproof exculpatory brownian claustrophobia exhaustion matte maxwellian impound meteoritic sanitary dee serine bloodhound ancient referral stuttgart prefer confuse wet eavesdropper bookie ah frazier annihilate rex underclassman appian roberts ordinal deform pansy brandon tabloid chromate NXP1 cuprousyour
rm
 
Re: Confusing 'Received' Header

From: Wietse Venema (wietseporcupine.org)
Date: Tue Jun 01 2004 - 19:02:17 CDT


Andrew Boothman:
> Hi!
>
> For some reason connections to a postfix 2.1.1 box running on my lan
> from a host called spatula.flat seem to have a confusing Received header
> added.
>
> Once such example is:
>
> Received: from [127.0.0.1] (spatula.flat [192.168.0.2])

[127.0.0.1] is the client HELO or EHLO command parameter.

[192.168.0.2] is the client IP address.

spatula.flat is the hostname for [192.168.0.2].

        Wietse


 
Re: Adding Message-ID is wrong

From: Jay Maynard (jmaynardconmicro.cx)
Date: Tue Jun 01 2004 - 19:19:11 CDT


On Wed, Jun 02, 2004 at 01:56:54AM +0200, Alex van den Bogaerdt wrote:
> On Tue, Jun 01, 2004 at 11:25:28AM -0500, Jay Maynard wrote:
> > On Tue, Jun 01, 2004 at 06:05:37PM +0200, Alex van den Bogaerdt wrote:
> > > Note that "the following changes" are allowed at the origin, not on an
> > > intermediate relay!
> > How about the destination? You keep talking about destination SMTP servers
> > as though they are intermediate relays. Is this, in fact, what the RFC
> > intends?
> Where am I talking about "destination SMTP servers" ?

When Postfix is the SMTP server that, in turn, delivers to the client's
mailbox (either via its own local delivery mechanism, or by LMTP), it's the
destination server. It's not an intermediate relay in that case. That is the
case where I see Postfix adding Message-ID: headers.

> It specifically forbids altering/adding Message-ID, "From:" and "To:"
> when the MTA is an intermediate relay. This is a "MUST NOT" which is
> as strong as it gets.

It says nothing about when it's the destination server, then?

> I know next to nothing (nor does postfix) about the client connecting
> over the internet. Why would I want to add -my- domain to the headers?
> Why confuse my users?

Because having a Message-ID: is better than not having one?

Face it: you can't reject based on not having a Message-ID: header. You'll
lose far too much mail. BTDT. Given that, why do you care if there's one or
not, or what the contents are?


 
Re: Adding Message-ID is wrong

From: Cami (camismweb.co.za)
Date: Tue Jun 01 2004 - 19:04:58 CDT


>>>Note that "the following changes" are allowed at the origin, not on an
>>>intermediate relay!
>>
>>How about the destination? You keep talking about destination SMTP servers
>>as though they are intermediate relays. Is this, in fact, what the RFC
>>intends?
>
> Where am I talking about "destination SMTP servers" ?
>
> But even then: The RFC allows, when being cautious, to alter the body
> when the MTA is the first one encountered _only_; initial submission.
> This is a "MAY" in that case, i.e. optional.
>
> It specifically forbids altering/adding Message-ID, "From:" and "To:"
> when the MTA is an intermediate relay. This is a "MUST NOT" which is
> as strong as it gets.

I've been wanting to be able to disable this for ages..

> I run postfix as an intermediate relay; I'm sure I'm not alone. Let's
> face it: postfix _is_ a good program. That doesn't mean it is perfect.
>
> I know next to nothing (nor does postfix) about the client connecting
> over the internet. Why would I want to add -my- domain to the headers?
> Why confuse my users?

A large amount of my userbase is very confused by the From:/To: fields
that Postfix inserts.. (especially when they try to reply to the mail..)

Cami


 
Re: NFS Maildirs

From: Cami (camismweb.co.za)
Date: Tue Jun 01 2004 - 19:08:00 CDT


>1. Does any network storage platform come to mind as being
> particularly fast (in terms of "postfix needs to write mails to
> maildir, while clients hammer away using POP3 and IMAP) while being
> reasonably economical?
> We have an average of 13.000 Logins/h -- POP/IMAP
> Note that the network storage is not exclusively used by us only,
> but is being shared.
>
>
> Do you have to share the filesystem or the NAS as such?
>
>
>>2. Will any NFS solution scale? If not, what alternative is there?

We have just moved to a Dell CX600, and its nothing short of amazing..
Each machine/mailhost connects to the CX600 via Fibre channel network
cards.. Its fast, very very fast..

Cami


 
Re: Confusing 'Received' Header

From: Andrew Boothman (andrewmux.org.uk)
Date: Tue Jun 01 2004 - 19:08:37 CDT


Wietse Venema wrote:

>>For some reason connections to a postfix 2.1.1 box running on my lan
>>from a host called spatula.flat seem to have a confusing Received header
>>added.
>>
>>Once such example is:
>>
>>Received: from [127.0.0.1] (spatula.flat [192.168.0.2])
>
>
> [127.0.0.1] is the client HELO or EHLO command parameter.
>
> [192.168.0.2] is the client IP address.
>
> spatula.flat is the hostname for [192.168.0.2].

Of course! I'm sorry I'd completely forgotten that. I've confirmed by
telnet-ing to port 25 and writing an email directly that the Recieved
header was then added correctly.

I think Mozilla Thunderbird 0.6 is generating the wrong hostname for use
in the HELO command - it used to always use the domain following the
in the email address you were sending from.

Andrew


 
Re: Adding Message-ID is wrong

From: Lefteris Tsintjelis (leftyene.asda.gr)
Date: Tue Jun 01 2004 - 19:24:40 CDT


> I run postfix as an intermediate relay; I'm sure I'm not alone. Let's
> face it: postfix _is_ a good program. That doesn't mean it is perfect.

It is among _the_ best ones actually. :)


 
Re: Adding Message-ID is wrong

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Tue Jun 01 2004 - 19:32:02 CDT


On Wed, Jun 02, 2004 at 02:04:58AM +0200, Cami wrote:

> A large amount of my userbase is very confused by the From:/To: fields
> that Postfix inserts.. (especially when they try to reply to the mail..)

Thank you. You understand the problem.

Do you have numbers on how many of such mail is malformed but otherwise
valid email? And how many of those do have a message-id?

As far as I can tell:
- mail without a message-id is spam or virus, perhaps a few exceptions
- those messages often have spoofed or non-fqdn headers
- the subject of filtering on a missing message-id has come up before
   (as has the subject of non-FQDN from: and to:)
- adding a message-id is only optional as far as rfc822 is concerned
- adding a message-id is only optional as far as rfc2821 is concerned,
  and several warnings are included such as this one:
  "This strategy is generally considered appropriate when the server can
   identify or authenticate the client, and there are prior agreements
   between them. By contrast, there is at best great concern about fixes
   applied by a relay or delivery SMTP server that has little or no
   knowledge of the user or client machine."
- adding a message-id is specifically forbidden by rfc2821 when an MTA
  is an intermediate (such as: spammer->MTA1->MTA2->destination when
  postfix is MTA2)
- Correcting addresses to proper FQDN format is specifically forbidden
  by rfc2821 when an MTA is an intermediate
- currently there's no way (AFAIK) to make postfix NOT add/correct the
  headers despite the MUST NOT as discussed

So therefore I stand by my claim that adding a message-id is wrong. In
the message itself I stated that opinions and setups may differ so the
process should be configurable. I regret if my wordings are misinterpreted
however I have done my homework.

cheers,
Alex
--
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If
you reply to me off-list, you'd better tell me you're doing so. If
you don't, and if I reply to the list, that's your problem, not mine.


 
Re: Adding Message-ID is wrong

From: Wietse Venema (wietseporcupine.org)
Date: Tue Jun 01 2004 - 19:39:16 CDT


Alex van den Bogaerdt:
> As far as I can tell:
> - mail without a message-id is spam or virus, perhaps a few exceptions

I added a missing message ID warning and found that it would drop
legitimate SMTP mail that was forwarded by qmail. That was enough of
an exeption for me to not provide this as a spam blocking feature.

There has to be a better reason than being strict to the letter of
some RFC that was written when Postfix already existed.

        Wietse


 
Re: Adding Message-ID is wrong

From: Cami (camismweb.co.za)
Date: Tue Jun 01 2004 - 19:55:27 CDT


>>A large amount of my userbase is very confused by the From:/To: fields
>>that Postfix inserts.. (especially when they try to reply to the mail..)
>
> Thank you. You understand the problem.
>
> Do you have numbers on how many of such mail is malformed but otherwise
> valid email?

110 million mail messages are spam (+30 million legitimate), of those
almost 5 million have To/From headers that Postfix replaces.. (monthly
statistics)

Having to deal with those clients is quite a headache as previously
we used Exim and then Qmail, and neither had the same behaviour..

Be that as it may, perhaps i'm being over critical and having to
(in my opinion) use the best MTA comes with small burdens and a
lot more positive points..

> And how many of those do have a message-id?

Postfix accepts the mail, injects its own Message-ID and once queued,
the message gets past onto SpamAssassin. SpamAssassin clearly can see
that the Message-ID was added by the wrong machine (part of the default
SA ruleset) and adjusts the SA scoring ..
50_scores.cf:score MSGID_FROM_MTA_SHORT 3.665 3.310 3.167 3.030
Thats *extremely* high and has a very bad effect for legimate
mail entering the system..

> As far as I can tell:
> - mail without a message-id is spam or virus, perhaps a few exceptions

Thats is not quite true.. I done some tagging on mails without
Message-ID's and found that there *is* quite a lot of legimate
mail that does *not* have a Message-ID.. (especially from some
large mailing lists in the past..)

> - adding a message-id is specifically forbidden by rfc2821 when an MTA
> is an intermediate (such as: spammer->MTA1->MTA2->destination when
> postfix is MTA2)
> - currently there's no way (AFAIK) to make postfix NOT add/correct the
> headers despite the MUST NOT as discussed
>
> So therefore I stand by my claim that adding a message-id is wrong. In
> the message itself I stated that opinions and setups may differ so the
> process should be configurable. I regret if my wordings are misinterpreted
> however I have done my homework.

Just so i make my point known, the Message-ID bit is not really an
issue for me.. Its the From:/To: fields that cause the headaches..

Cami


 
Re: Adding Message-ID is wrong

From: Cami (camismweb.co.za)
Date: Tue Jun 01 2004 - 20:01:07 CDT


> Postfix accepts the mail, injects its own Message-ID and once queued,
> the message gets past onto SpamAssassin. SpamAssassin clearly can see
> that the Message-ID was added by the wrong machine (part of the default
> SA ruleset) and adjusts the SA scoring ..
> 50_scores.cf:score MSGID_FROM_MTA_SHORT 3.665 3.310 3.167 3.030

Forgot to mention this little bit..
If SpamAssassin finds no Message-ID in the message:

# (allow this test to pass if there's no Message-Id header)
header MSGID_HAS_NO_AT MESSAGEID !~ /\/ [if-unset: NOMSGID]
describe MSGID_HAS_NO_AT Message-Id has no sign
50_scores.cf:score MSGID_HAS_NO_AT 0

So according to SpamAssasin, having no Message-ID is fine..

Cami


 
Re: Virtual hosting with cyrus (mailboxes called userfoo.domain)

From: Josef Karthauser (joetao.org.uk)
Date: Tue Jun 01 2004 - 20:30:45 CDT


On Tue, Jun 01, 2004 at 10:13:06PM +0100, Josef Karthauser wrote:
> Can someone point me in the right direction to get cyrus to use the
> transport "cyrus" to deliver to mailboxes with 's in the name.

> How do I get postfix to use the 'cyrus' transport for mailboxes named in
> this way?

Ok, I've worked out most of it.

I added the following to my main.cf file:

    virtual_transport = cyrusx
    virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailboxes
    virtual_mailbox_domains = $virtual_mailbox_maps
    virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

And defined this in master.cf:

cyrusx unix - n n - - pipe
  flags=R user=cyrus argv=/usr/local/cyrus/bin/deliver -e -m ${extension} ${recipient}

Which is basically the same as the cyrus rule but with ${recipient}
instead of ${user} defined so that the whole email address gets sent to
cyrus's deliver command.

This works, but I'm confused about virtual_mailbox_maps.

    virtual:
        mejosef-k.net joetao.org.uk
        youjosef-k.net testjosef-k.net

    vmailboxes:
        testjosef-k.net *
        test2josef-k.net *

This looks to me as if there are two mailboxes defined: test and test2
at josef-k.net, and that there are two aliases defined also.

Strangely if I attempt to deliver mail to test3josef-k.net I get:

    Jun 2 02:10:14 transwarp postfix/qmgr[65370]: 624B4EA52: from=<roottao.org.uk>, size=304, nrcpt=1 (queue active)
    Jun 2 02:10:14 transwarp postfix/pipe[65469]: 624B4EA52: to=<test3josef-k.net>, relay=cyrusx, delay=0, status=bounced (data format error. Command output: test3josef-k.net: Mailbox does not exist )

Why is cyrusx trying to deliver mail to test3josef-k.net? It's not
mentioned in the vmailboxes file. Shouldn't something be saying
user-unknown before it attempts the delivery agent?

Joe
--
Josef Karthauser (joetao.org.uk) http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/
Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iEYEARECAAYFAkC9LcUACgkQXVIcjOaxUBahRQCgywVsaT1TG1I+e863LVvdAxSo
PugAnjm4weL/fVAYaTrP96GYzSfnmYfd
=ASSV
-----END PGP SIGNATURE-----


 
Re: NFS Maildirs

From: John (jpozquickscribble.com)
Date: Tue Jun 01 2004 - 22:30:43 CDT


Linux Journal just ran an article about a large-scale migration to postfix,
etc. It can be found in the following links:

http://www.linuxjournal.com/article.php?sid=7323

http://www.linuxjournal.com/article.php?sid=7524

http://www.linuxjournal.com/article.php?sid=7456

We also just implemented a Dell CX-600 SAN for all of our Windows boxes.
It's fantastic. However, we found out (after purchase) that HP will not
support the connection from our N-Class HP-UX servers to the CX-600.
Apparently they only support connections to HP SANs (shocking!) and the EMC
Symetrix stuff (probably to other brands...don't know).

John

----- Original Message -----
From: "Cami" <camismweb.co.za>
To: <postfix-userspostfix.org>
Sent: Tuesday, June 01, 2004 7:08 PM
Subject: Re: NFS Maildirs

> >1. Does any network storage platform come to mind as being
> > particularly fast (in terms of "postfix needs to write mails to
> > maildir, while clients hammer away using POP3 and IMAP) while being
> > reasonably economical?
> > We have an average of 13.000 Logins/h -- POP/IMAP
> > Note that the network storage is not exclusively used by us only,
> > but is being shared.
> >
> >
> > Do you have to share the filesystem or the NAS as such?
> >
> >
> >>2. Will any NFS solution scale? If not, what alternative is there?
>
> We have just moved to a Dell CX600, and its nothing short of amazing..
> Each machine/mailhost connects to the CX600 via Fibre channel network
> cards.. Its fast, very very fast..
>
> Cami
>


 
Re: Best POP/IMAP Server

From: Robin Lynn Frank (rlfrankparadigm-omega.com)
Date: Tue Jun 01 2004 - 22:45:20 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

On Tuesday 01 June 2004 13:08, Matt Krause wrote:
> Forgive me for writing out this to the Postfix group, but I was wanting
> the opinion of Postfix users as to what the best POP/IMAP server is to
> run over the top of Postfix. Right now, but I am using the Courier
> servers, but am unhappy with the amount of information in the log files.
> Can anyone tell me what Qpoppers logs files are like and how detailed
> you can make them? Also, are there any other decent IMAP servers out
> there?
>
> Thanks.

My vote is for courier-imap. It takes advantage of postfix's ability to
deliver to a maildir and, if configured (easy) first, will generate its own
TLS certs (both for imap and pop3) the first time you fire it up.

Cyrus-imap looks interesting, but its configuration is a bit more challenging.
- --
BOFH excuse #187:

Reformatting Page. Wait...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Sed quis custodiet ipsos custodes?

iD8DBQFAvU1jo0pgX8xyW4YRA1OpAJ9+ucaDKIMBM3SKKuxc+Z6gj2YKWQCeNfXz
bs4wriHOfRItKHb9ye3yRnc=
=3TXf
-----END PGP SIGNATURE-----


 
SASL auth - fatal: per-session SASL client initialization

From: Gregg Donley (greggd1yahoo.com)
Date: Tue Jun 01 2004 - 22:47:17 CDT


I am trying to enable SASL authentication in the
postfix smtp client using Cyrus SASL. According to
the logs, the transport map, user and password
database lookup, and smtp ELHO command all occur
correctly. Then I get:
:starting new SASL client
:fatal: per-session SASL client initialization

Here is my /usr/local/sasl/smtpd.conf file:
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: plain login
sasldb_path: /etc/sasldb2

Setup:
RedHat9 (kernel 2.4.20-8)
Cyrus 2.1.10
postfix 2.1.1

postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
debug_peer_list = lostinthewood.com, nvsys.com,
sbcglobal.net, 66.163.171.137
default_privs = nobody
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
local_recipient_maps = unix:passwd.byname
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain
mydomain = lostinthewood.com
myhostname = montague.lostinthewood.com
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps =
hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtpd_recipient_restrictions = permit_mynetworks
permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_application_name = smtpd
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options =
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/valias
virtual_gid_maps = static:200
virtual_mailbox_base = /var/mail/hosts
virtual_mailbox_domains = novemberskies.com,
picfbcla.com, gatesmiths.com lostinthewood.com
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:200

I can provide more info if necessary, but hopefully
someone has seen this and can tell me what is wrong,
probably something simple.

Thanks for any help,

Gregg

        
                
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/


 
Re: Adding Message-ID is wrong

From: Craig Sanders (castaz.net.au)
Date: Tue Jun 01 2004 - 23:05:10 CDT


On Mon, May 24, 2004 at 09:03:27AM -0400, Wietse Venema wrote:
> Alex van den Bogaerdt:
> > I have spent several hours
> > studying the source, and am confident I can make postfix RFC2821 compliant
> > at least on that small part. It will be a non-public patch, so be it.
>
> There are better ways to get something into Postfix than doing that.
> All I have seen is griping, and THAT really turns me off.

maybe postfix should only add a missing Message-Id if the client IP address is
in $mynetworks (or authenticated with SMTP AUTH or tls certificate or perhaps
even pop-before-smtp).

craig

--
craig sanders <castaz.net.au>

The next time you vote, remember that "Regime change begins at home"


 
Re: Authentication failed sasl & mysql (SOLVED)

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Tue Jun 01 2004 - 23:16:31 CDT


Am Mittwoch, 2. Juni 2004 01:48 schrieb erri:
> Look at log:

> Jun 2 01:42:41 aixsrv2 postfix/smtpd[307352]: > unknown[172.26.0.2]:
> 250-AUTH PLAIN
>
> Jun 2 01:42:41 aixsrv2 postfix/smtpd[307352]: > unknown[172.26.0.2]:
> 250-AUTH=PLAIN
>
> Jun 2 01:42:41 aixsrv2 postfix/smtpd[307352]: match_list_match: unknown: no
> match
>
> Jun 2 01:42:41 aixsrv2 postfix/smtpd[307352]: match_list_match: 172.26.0.2:
> no match
>
> Jun 2 01:42:41 aixsrv2 postfix/smtpd[307352]: > unknown[172.26.0.2]: 250
> 8BITMIME
>
> Jun 2 01:42:41 aixsrv2 postfix/smtpd[307352]: watchdog_pat: 2004ec60
>
> Jun 2 01:42:41 aixsrv2 postfix/smtpd[307352]: < unknown[172.26.0.2]: MAIL
> FROM: <usudomainx.com>

There is no authenticating. The client does not speak "PLAIN", maybe it can
only handle "LOGIN" (Maybe Outlook).

The mech_list-Option was only to test, if you are editing the right
smtpd.conf. Delete the Line and try it again.

--
        Andreas


 
Re: Adding Message-ID is wrong

From: Craig Sanders (castaz.net.au)
Date: Tue Jun 01 2004 - 23:18:56 CDT


On Tue, Jun 01, 2004 at 06:05:37PM +0200, Alex van den Bogaerdt wrote:
> Note that "the following changes" are allowed at the origin, not on an
> intermediate relay!
>
> A spammer sends mail with just a bare "From: spammer" as the RFC822 sender
> address. Postfix appends $myorigin to it. Users get mail from a supposedly
> local user. Difficult to explain to them *that* postfix adds its own name,
> not possible to respond to the general response of "But... thats stupid. Why
> does it do that?"

the answer is that lots of local users are stupid and configure their mail
clients to send mail from just plain "john" rather than "johnexample.com".

in this particular instance, postfix IS the originating SMTP server, acting on
behalf of the client and what it does is a Good Thing. it drastically reduces
the number of stupid questions from stupid users with misconfigured mail
clients. the one or two stupid questions per year from people puzzled by the
behaviour are a tiny price to pay.

it's probably not possible to implement without radical changes to the way that
postfix works (which would cost far more than it is worth), but a strong
argument could be made that postfix should only append $mydomain when the
client IP address is in $mynetworks or has been authenticated.

another possibility is to only make these changes IF there aren't any Received:
headers (apart from the one added by the local postfix). it won't help with
direct-to-mx spam/viruses(*), but otherwise it is a pretty good indicator of
whether the local postfix is the first smtp server that has seen the message or
not.

(*) these often have several forged Received headers anyway.

craig

--
craig sanders <castaz.net.au>

The next time you vote, remember that "Regime change begins at home"


 
Re: SASL auth - fatal: per-session SASL client initialization

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Tue Jun 01 2004 - 23:23:11 CDT


Am Mittwoch, 2. Juni 2004 05:47 schrieb Gregg Donley:

> I am trying to enable SASL authentication in the
> postfix smtp client using Cyrus SASL. According to
> the logs, the transport map, user and password
> database lookup, and smtp ELHO command all occur
>
> correctly. Then I get:
> :starting new SASL client
> :fatal: per-session SASL client initialization
>
> Here is my /usr/local/sasl/smtpd.conf file:

Check your Cyrus-SASL Version. I would guess you are using sasl2. So look in /
usr/local/lib/sasl2/ for the smtpd.conf.

> pwcheck_method: auxprop
> auxprop_plugin: sasldb
> mech_list: plain login
> sasldb_path: /etc/sasldb2

Most of this are sasl2-options.

> Setup:
> RedHat9 (kernel 2.4.20-8)
> Cyrus 2.1.10
> postfix 2.1.1

Show:

# ldd `postconf -h daemon_directory`/smtpd

--
        Andreas


 
Re: SASL auth - fatal: per-session SASL client initialization

From: Gregg Donley (greggd1yahoo.com)
Date: Tue Jun 01 2004 - 23:28:20 CDT


--- Andreas Winkelmann <mlawinkelmann.de> wrote:
> Am Mittwoch, 2. Juni 2004 05:47 schrieb Gregg
> Donley:
>
> > I am trying to enable SASL authentication in the
> > postfix smtp client using Cyrus SASL. According
> to
> > the logs, the transport map, user and password
> > database lookup, and smtp ELHO command all occur
> >
> > correctly. Then I get:
> > :starting new SASL client
> > :fatal: per-session SASL client initialization
> >
> > Here is my /usr/local/sasl/smtpd.conf file:
>
> Check your Cyrus-SASL Version. I would guess you are
> using sasl2. So look in /
> usr/local/lib/sasl2/ for the smtpd.conf.

Sorry, my typo, I am using sasl2 and this was my
/usr/local/sasl2/smtpd.conf file.

>
> > pwcheck_method: auxprop
> > auxprop_plugin: sasldb
> > mech_list: plain login
> > sasldb_path: /etc/sasldb2
>
> Most of this are sasl2-options.
>
> > Setup:
> > RedHat9 (kernel 2.4.20-8)
> > Cyrus 2.1.10
> > postfix 2.1.1
>
> Show:
>
> # ldd `postconf -h daemon_directory`/smtpd
>
> --
> Andreas
>

        
                
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/


 
Re: SASL auth - fatal: per-session SASL client initialization

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Tue Jun 01 2004 - 23:46:34 CDT


Am Mittwoch, 2. Juni 2004 06:28 schrieb Gregg Donley:

> > > correctly. Then I get:
> > > :starting new SASL client
> > > :fatal: per-session SASL client initialization
> > >
> > > Here is my /usr/local/sasl/smtpd.conf file:
> >
> > Check your Cyrus-SASL Version. I would guess you are
> > using sasl2. So look in /
> > usr/local/lib/sasl2/ for the smtpd.conf.
>
> Sorry, my typo, I am using sasl2 and this was my
> /usr/local/sasl2/smtpd.conf file.
>
> > > pwcheck_method: auxprop
> > > auxprop_plugin: sasldb
> > > mech_list: plain login
> > > sasldb_path: /etc/sasldb2

Exists the link /usr/lib/sasl2 -> /usr/local/lib/sasl2 ? Is there another one
in /usr/lib/sasl2 ?

Most time this error occur, when there are "="-Signs instead of ":" in the
smtpd.conf.

--
        Andreas


 
Re: SASL auth - fatal: per-session SASL client initialization

From: Gregg Donley (greggd1yahoo.com)
Date: Tue Jun 01 2004 - 23:57:01 CDT


--- Gregg Donley <greggd1yahoo.com> wrote:
>
> --- Andreas Winkelmann <mlawinkelmann.de> wrote:
> > Am Mittwoch, 2. Juni 2004 05:47 schrieb Gregg
> > Donley:
> >
> > > I am trying to enable SASL authentication in the
> > > postfix smtp client using Cyrus SASL. According
> > to
> > > the logs, the transport map, user and password
> > > database lookup, and smtp ELHO command all occur
> > >
> > > correctly. Then I get:
> > > :starting new SASL client
> > > :fatal: per-session SASL client initialization
> > >
> > > Here is my /usr/local/sasl/smtpd.conf file:
> >
> > Check your Cyrus-SASL Version. I would guess you
> are
> > using sasl2. So look in /
> > usr/local/lib/sasl2/ for the smtpd.conf.
>
> Sorry, my typo, I am using sasl2 and this was my
> /usr/local/sasl2/smtpd.conf file.
Sorry for the waste of bandwidth, but before I confuse
everyone it is "/usr/lib/sasl2/smtpd.conf" which is
the same as "/usr/local/lib/sasl2/smtpd.conf".
>
> >
> > > pwcheck_method: auxprop
> > > auxprop_plugin: sasldb
> > > mech_list: plain login
> > > sasldb_path: /etc/sasldb2
> >
> > Most of this are sasl2-options.
> >
> > > Setup:
> > > RedHat9 (kernel 2.4.20-8)
> > > Cyrus 2.1.10
> > > postfix 2.1.1
> >
> > Show:
> >
> > # ldd `postconf -h daemon_directory`/smtpd
> >
> > --
> > Andreas
> >
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/

        
                
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/


 
Re: Adding Message-ID is wrong

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 00:35:36 CDT


>>A spammer sends mail with just a bare "From: spammer" as the RFC822 sender
>>address. Postfix appends $myorigin to it. Users get mail from a supposedly
>>local user. Difficult to explain to them *that* postfix adds its own name,
>>not possible to respond to the general response of "But... thats stupid. Why
>>does it do that?"
>
> the answer is that lots of local users are stupid and configure their mail
> clients to send mail from just plain "john" rather than "johnexample.com".

You are making huge presumptions..

> in this particular instance, postfix IS the originating SMTP server, acting on
> behalf of the client and what it does is a Good Thing. it drastically reduces
> the number of stupid questions from stupid users with misconfigured mail
> clients. the one or two stupid questions per year from people puzzled by the
> behaviour are a tiny price to pay.

Clearly you do not work for any large ISP..

> it's probably not possible to implement without radical changes to the way that
> postfix works (which would cost far more than it is worth), but a strong
> argument could be made that postfix should only append $mydomain when the
> client IP address is in $mynetworks or has been authenticated.

Agreed..

> another possibility is to only make these changes IF there aren't any Received:
> headers (apart from the one added by the local postfix). it won't help with
> direct-to-mx spam/viruses(*), but otherwise it is a pretty good indicator of
> whether the local postfix is the first smtp server that has seen the message or
> not.

*Why*? This is exactly what you do not want..

Cami


 
Re: NFS Maildirs

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 00:37:51 CDT


> http://www.linuxjournal.com/article.php?sid=7323
>
> http://www.linuxjournal.com/article.php?sid=7524
>
> http://www.linuxjournal.com/article.php?sid=7456
>
> We also just implemented a Dell CX-600 SAN for all of our Windows boxes.
> It's fantastic. However, we found out (after purchase) that HP will not
> support the connection from our N-Class HP-UX servers to the CX-600.

We have our entire solution certified and supported by EMC..
They have strict requirements on OS/drivers etc etc, but its
proven to provide far more joy in the long run..

Cami


 
Re: Greylisting and whitelists for bad mailers???

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 00:48:30 CDT


* Jason Fesler <jfeslergigo.com>:

> Also, ebay's retry times seem to be about *4h*.

Got a list of their outbound relays?

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
I'm awaiting the day that SCO claims that Osama himself has submitted
patches to the kernel and that Alan Cox colaborated with Saddam
Hussein in the mid 90's.


 
Re: Adding Message-ID is wrong

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 00:51:55 CDT


* Alex van den Bogaerdt <alexergens.op.het.net>:

> I know next to nothing (nor does postfix) about the client connecting
> over the internet. Why would I want to add -my- domain to the
> headers? Why confuse my users?

You do have a point there, and that's a long standing issue with
Postfix.
But Postfix cannot know if it's an initial submission or if Postfix is
performing relay duties.

On a setup like here, where hauptpostamt.charite.de is just a relay,
we might as well turn the message-id generation off. Unfortunately, we
need to keep the function append_at_myorigin, or all our virtual
aliasing will break. I could fix that, but that would be a lot of work.

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
"Windows 95 /n./ 32 bit extensions and a graphical shell for a 16 bit
patch to an 8 bit operating system originally coded for a 4 bit
microprocessor, written by a 2 bit company that can't stand 1 bit of
competition."


 
Re: Adding Message-ID is wrong

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 00:54:20 CDT


* Wietse Venema <wietseporcupine.org>:

> I added a missing message ID warning and found that it would drop
> legitimate SMTP mail that was forwarded by qmail.

Well, the warning would be ok. Why not add an option to add a warning
in the snapshot and then we could all try HOW MUCH MAIL ACTUALLY comes
without a message-id and what kind of mail that is. Some sort of field
study.

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Given the opacity of the product, how could a Windows admin ever know
as much about Windows as a UNIX admin does about UNIX?! (Roger B. A.
Klorese on Postfix Mailing List)


 
Re: Greylisting and whitelists for bad mailers???

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 00:55:49 CDT


>>Also, ebay's retry times seem to be about *4h*.
>
> Got a list of their outbound relays?

http://www.greylisting.org/whitelisting.html

66.135.209 # Ebay (for time critical alerts)
66.135.197 # Ebay


 
Re: Adding Message-ID is wrong

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 00:59:50 CDT


>> I added a missing message ID warning and found that it would drop
>> legitimate SMTP mail that was forwarded by qmail.
>
> Well, the warning would be ok. Why not add an option to add a warning
> in the snapshot and then we could all try HOW MUCH MAIL ACTUALLY comes
> without a message-id and what kind of mail that is. Some sort of field
> study.

Adding a warning for a message not having Message-ID is fine, however
rejecting that message because it does not have one isn't a good idea..

Cami


 
smtp auth question

From: Omer Faruk Sen (omerfaruk.net)
Date: Wed Jun 02 2004 - 01:17:49 CDT


Hi,

I have realised on my mail server that when users are authenticated
against my smtp server they can change From: field with different username
within my domain. MS outlook express allows you to specify different
SMTP-AUTH username/pass than your account. Thus a clever!! user can abuse
it with authenticating against my smtp server but can send mails under
another account. Is there a way to prevent this?

REGARDS

--
Omer Faruk Sen
http://www.faruk.net
Public Key: http://www.faruk.net/omer.asc


 
Re: smtp auth question

From: Mick Pollard (micklunix.au.com)
Date: Wed Jun 02 2004 - 01:05:38 CDT


>Thus a clever!!
> user can abuse it with authenticating against my smtp server but can
> send mails under another account. Is there a way to prevent this?
>
They will need to know the password of the account they are using to
send out with. SMTP-AUTH reuires a vaild username & password pair.
If they only know their own username & password then they can't do as
you suspected.

--
Regards
Mick Pollard ( lunix )
------------------------------------------------
BOFH Excuse of the day:
Static Registry Underflow Error


 
Re: Greylisting and whitelists for bad mailers???

From: Jason Fesler (jfeslergigo.com)
Date: Wed Jun 02 2004 - 01:17:19 CDT


> Got a list of their outbound relays?

Haven't tracked it to be honest. I'm whitelisting based on combination of
both sender and reverse DNS name. My understanding is the first box that
tries to talk to you, if it fails for any reason (including greylisting),
they punt it to a different box for the slow deliveries. That box,
immediately tries once as well, then sits on the message for hours.

My number one user of course was affected by this. Since I'm married to
such user, I actaully paid attention.. :-)


 
RE: Postfix+Virtual Domain+imapd

From: Umut Besler (umutbeslerumutbesler.com)
Date: Wed Jun 02 2004 - 01:16:50 CDT


I think that if you want to use courier-imap you have to use Maildir (not
mailbox).
You can specify it on main.cf like, home_mailbox = Maildir/ and comment out
the home_mailbox = Mailbox directive.
I tinhk it will work for you.

  _____

From: owner-postfix-userspostfix.org
[mailto:owner-postfix-userspostfix.org] On Behalf Of IZEM Farid
Sent: Tuesday, June 01, 2004 4:20 PM
To: postfix-userspostfix.org
Subject: Postfix+Virtual Domain+imapd

Hi all,

 

I'm testing Postfix Virtual Domain and Courier-Imap on FreeBSD 5.1.

 

Courier-Imap basic setup seems to be working.

Authentication is good. No error in my log.

Directory where to store the mailbox is /var/vhosts/dsi.test.fr/First
Name.LastName

It's the first time using courier-imap so I 'm currently using userdb
authentication.

 

Postfix configuration:

 

alias_database = hash:/etc/postfix/aliases

alias_maps = hash:/etc/postfix/aliases

command_directory = /usr/sbin

config_directory = /etc/postfix

daemon_directory = /usr/libexec/postfix

debug_peer_level = 2

inet_interfaces = all

mail_owner = postfix

mailq_path = /usr/bin/mailq

manpage_directory = /usr/local/man

mydomain = test.fr

myhostname = myserver.test.fr

mynetworks = 192.168.0.0/16, 172.19.0.0/16

myorigin = $mydomain

newaliases_path = /usr/bin/newaliases

queue_directory = /var/spool/postfix

readme_directory = no

sample_directory = /etc/postfix

sendmail_path = /usr/sbin/sendmail

setgid_group = postdrop

transport_maps = hash:/etc/postfix/transport

unknown_local_recipient_reject_code = 450

virtual_alias_maps = hash:/etc/postfix/virtual

virtual_gid_maps = static:5000

virtual_mailbox_base = /var/vhosts

virtual_mailbox_domains = dsi.test.fr

virtual_mailbox_maps = hash:/etc/postfix/vmailbox

virtual_minimum_uid = 100

virtual_uid_maps = static:5000

 

Content of vmailbox:

farid.izemdsi.test.fr dsi.test.fr/farid.izem/farid.izem

 

Mail is delivered as I get no error in my logs:

Jun 1 14:32:07 ABXCompaq postfix/smtpd[40397]: connect from
ABXCompaq.dsi.test.fr[192.168.1.81]

Jun 1 14:32:28 ABXCompaq postfix/smtpd[40397]: 910A0B8073:
client=ABXCompaq.dsi.test.fr[192.168.1.81]

Jun 1 14:32:47 ABXCompaq postfix/cleanup[40399]: 910A0B8073:
message-id=<20040601123228.910A0B8073abxcompaq.abxlogistics.fr>

Jun 1 14:32:47 ABXCompaq postfix/qmgr[40395]: 910A0B8073:
from=<farid.izemdsi.test.fr>, size=416, nrcpt=1 (queue active)

Jun 1 14:32:47 ABXCompaq postfix/virtual[40401]: 910A0B8073:
to=<farid.izemdsi.test.fr>, relay=virtual, delay=19, status=sent (mailbox)

 

I can't retrieve mail from the imapd server.

 

Do I need something to add to postfix in order to deliver mail to
courier-imap ??

 

All informations I found when googleing is Postfix+MySQL+Courier Imap !!!

 

Nothing on a simple installation.

 

Thanks for you help, your time and the works you are making on Postfix.

 

Farid IZEM

Ingénieur Système Unix

Société ABX Logistics France

48-50, route principale du port

92232 Gennevilliers

Tél. : 01-41-47-61-78

Email : farid.izemabxlogistics.fr

 


 
Re: smtp auth question

From: Omer Faruk Sen (omerfaruk.net)
Date: Wed Jun 02 2004 - 01:42:08 CDT


I have verified myself that using valid username/password for smtp-auth
but changing From: line can be done easily by modifying Outlook (Tools
-->Accounts -->Mail -->Properties -->General-->Email addresss ..)

>>Thus a clever!!
>> user can abuse it with authenticating against my smtp server but can
>> send mails under another account. Is there a way to prevent this?
>>
> They will need to know the password of the account they are using to
> send out with. SMTP-AUTH reuires a vaild username & password pair.
> If they only know their own username & password then they can't do as
> you suspected.
>
>
> --
> Regards
> Mick Pollard ( lunix )
> ------------------------------------------------
> BOFH Excuse of the day:
> Static Registry Underflow Error
>

--
Omer Faruk Sen
http://www.faruk.net
Public Key: http://www.faruk.net/omer.asc


 
Content_filter for certain users only

From: Figaro, Nicolas (nfigarocdcixis-cm.com)
Date: Wed Jun 02 2004 - 01:32:13 CDT


Hi,

I wish to use a content filter for certain users only.

The goal is to tst an anti-spam tool for certain users only.

For the moment, a

Has anyone ever done this ??

I use postfix 2.0.19 on solaris 2.6.

Here is an extract of my master.cf :
smtp inet n - n - - smtpd -o
content_filter= smtp:[localhost]:10999 -o disable_dns_lookups=yes
localhost:10926 inet n - n - - smtpd
-o content_filter= -o myhostname=localhost

The 10999 port is used by interscan viruswall. All traffic is sent to
viruswall and sent back to the smtpd on port 10926.

Thanks

Nicolas figaro


 
Re: clamAV and postifix without spamassassin

From: J. Ryan Earl (hereticclanhk.org)
Date: Wed Jun 02 2004 - 01:36:19 CDT


Get setup SpamAssassin with amavisd-new you need to install both and
then edit the defaults in /etc/amavisd.conf

/# SpamAssassin settings/

To your liking. Also server for the section with

/av_scanners = (/

And make sure you having something like the following uncommented:

/ ['Clam Antivirus-clamd',
   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/amavis/clamd.sock"],
   qr/\bOK$/, qr/\bFOUND$/,
   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],/

So that you use the fast C daemon. Next edit /etc/clamav.conf

In particular make sure you use the same user as for amavis, and use the
same unix socket for amavis too:

/PidFile /var/run/clamav/clamd.pid
User amavis
/
Start both amavisd-new and clamd daemons. Check your syslog (with
$log_level = 2;) for something like:

/May 28 06:24:27 mail amavis[5600]: starting. amavisd at
mail.hardcore-gaming.net amavisd-new-20030616-p9, Unicode aware
May 28 06:24:27 mail amavis[5600]: Perl version 5.008003
May 28 06:24:27 mail amavis[5600]: Module Amavis::Conf 1.15
May 28 06:24:27 mail amavis[5600]: Module Archive::Tar 1.05
May 28 06:24:27 mail amavis[5600]: Module Archive::Zip 1.06
May 28 06:24:27 mail amavis[5600]: Module Compress::Zlib 1.22
May 28 06:24:27 mail amavis[5600]: Module Convert::TNEF 0.17
May 28 06:24:27 mail amavis[5600]: Module Convert::UUlib 0.31
May 28 06:24:27 mail amavis[5600]: Module MIME::Entity 5.404
May 28 06:24:27 mail amavis[5600]: Module MIME::Parser 5.406
May 28 06:24:27 mail amavis[5600]: Module MIME::Tools 5.411
May 28 06:24:27 mail amavis[5600]: Module Mail::Header 1.60
May 28 06:24:27 mail amavis[5600]: Module Mail::Internet 1.60
May 28 06:24:27 mail amavis[5600]: Module Mail::SpamAssassin 2.63
May 28 06:24:27 mail amavis[5600]: Module Net::Cmd 2.24
May 28 06:24:27 mail amavis[5600]: Module Net::DNS 0.40
May 28 06:24:27 mail amavis[5600]: Module Net::SMTP 2.26
May 28 06:24:27 mail amavis[5600]: Module Net::Server 0.85
May 28 06:24:27 mail amavis[5600]: Module Time::HiRes 1.5
May 28 06:24:27 mail amavis[5600]: Module Unix::Syslog 0.100
May 28 06:24:27 mail amavis[5600]: Found myself: /usr/sbin/amavisd -c
/etc/amavisd.conf
May 28 06:24:27 mail amavis[5600]: Lookup::SQL code NOT loaded
May 28 06:24:27 mail amavis[5600]: Lookup::LDAP code NOT loaded
May 28 06:24:27 mail amavis[5600]: AMCL-in protocol code loaded
May 28 06:24:27 mail amavis[5600]: SMTP-in protocol code loaded
May 28 06:24:27 mail amavis[5600]: ANTI-VIRUS code loaded
May 28 06:24:27 mail amavis[5600]: ANTI-SPAM code loaded
May 28 06:24:27 mail amavis[5601]: Net::Server: Process Backgrounded
May 28 06:24:27 mail amavis[5601]: Net::Server: 2004/05/28-06:24:27
Amavis (type Net::Server::PreForkSimple) starting! pid(5601)
May 28 06:24:28 mail amavis[5601]: Net::Server: Binding to UNIX socket
file /var/run/amavis/amavisd.sock using SOCK_STREAM
May 28 06:24:28 mail amavis[5601]: Net::Server: Binding to TCP port
10024 on host 127.0.0.1
May 28 06:24:28 mail amavis[5601]: Net::Server: Setting gid to "441 441"
May 28 06:24:28 mail amavis[5601]: Net::Server: Setting uid to "102"
May 28 06:24:28 mail amavis[5601]: Net::Server: Couldn't POSIX::setuid
to "102" []
May 28 06:24:28 mail amavis[5601]: Found $file at /usr/bin/file
May 28 06:24:28 mail amavis[5601]: Found $arc at /usr/bin/arc
May 28 06:24:28 mail amavis[5601]: Found $gzip at /bin/gzip
May 28 06:24:28 mail amavis[5601]: Found $bzip2 at /bin/bzip2
May 28 06:24:28 mail amavis[5601]: Found $lzop at /usr/bin/lzop
May 28 06:24:28 mail amavis[5601]: Found $lha at /usr/bin/lha
May 28 06:24:28 mail amavis[5601]: Found $unarj at /usr/bin/unarj
May 28 06:24:28 mail amavis[5601]: Found $uncompress at /usr/bin/uncompress
May 28 06:24:28 mail amavis[5601]: Found $unfreeze at /usr/bin/unfreeze
May 28 06:24:28 mail amavis[5601]: Found $unrar at /usr/bin/unrar
May 28 06:24:28 mail amavis[5601]: Found $zoo at /usr/bin/zoo
May 28 06:24:28 mail amavis[5601]: Found $cpio at /usr/bin/cpio
May 28 06:24:28 mail amavis[5601]: Using internal av scanner code for
(primary) Clam Antivirus-clamd
May 28 06:24:28 mail amavis[5601]: SpamControl: initializing
Mail::SpamAssassin

/And:/

//May 28 06:24:32 mail clamd[6042]: Daemon started.
May 28 06:24:32 mail clamd[6042]: Log file size limited to 262144000 bytes.
May 28 06:24:32 mail clamd[6042]: Running as user amavis (UID 102, GID 441)
May 28 06:24:32 mail clamd[6042]: Reading databases from /var/lib/clamav
May 28 06:24:32 mail clamd[6042]: Protecting against 21650 viruses.
May 28 06:24:33 mail clamd[6044]: Unix socket file
/var/run/amavis/clamd.sock
May 28 06:24:33 mail clamd[6044]: Setting connection queue length to 50
May 28 06:24:33 mail clamd[6044]: Archive: Archived file size limit set
to 209715200 bytes.
May 28 06:24:33 mail clamd[6044]: Archive: Recursion level limit set to 10.
May 28 06:24:33 mail clamd[6044]: Archive: Files limit set to 100000.
May 28 06:24:33 mail clamd[6044]: Archive: Compression ratio limit set
to 200.
May 28 06:24:33 mail clamd[6044]: Archive support enabled.
May 28 06:24:33 mail clamd[6044]: RAR support enabled.
May 28 06:24:33 mail clamd[6044]: Mail files support enabled.
May 28 06:24:33 mail clamd[6044]: OLE2 support enabled.
May 28 06:24:33 mail clamd[6044]: Self checking every 2000 seconds.
May 28 06:24:33 mail freshclam[6046]: Freshclam started.
May 28 06:24:33 mail freshclam[6047]: freshclam daemon started (pid=6047)
May 28 06:24:33 mail freshclam[6047]: ClamAV update process started at
Fri May 28 06:24:33 2004
May 28 06:24:34 mail freshclam[6047]: main.cvd is up to date (version:
23, sigs: 21096, f-level: 2, builder: ddm)
/
In your /etc/postfix/main.cf add something like the follow, note the
10024, make sure amavisd-new is configured for this:

/content_filter=smtp-amavis:[127.0.0.1]:10024/

At the end of /etc/postfix/master.cf add:
/
smtp-amavis unix - - n - 2 lmtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - n - - smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000/

That should be most of it. You're relaying from Postfix to amavisd-new
via LMTP (scan mass emails once), then from amavisd-new back to Postfix
via SMTP.

Limme know if you have questions.

-ryan

Dustin Krysak wrote:

> 2) can someone point to a somewhat current how-to for this setup?
> clamAV/glue/postfix. Without any extras. I could decider the current
> how-tos and take the relevant info, but i am hoping to avoid any
> mess-ups due to a misinterpretation.
>
> Thanks in advance.
>
> Dustin
>


 
Automtic User Subdomains

From: Roy S. Rapoport (postfix-usersols.inorganic.org)
Date: Wed Jun 02 2004 - 01:36:32 CDT


For each user named 'foo' on my system, I'd like to have it so
'<ANYTHING>foo.users.inorganic.org' goes to fooinorganic.org

Normally, I'd need two entries in virtual:
foo.users.inorganic.org filler
foo.users.inorganic.org fooinorganic.org

It _looked_ like (reading virtual and regexp_table) I could do the second
half automatically thus:
/(.*).users.inorganic.org/ ${1}inorganic.org

So I figured maybe I'd be able to do this with the first line also,
resulting in these two lines in my virtual table:
/(.*).users.inorganic.org/ filler
/(.*).users.inorganic.org/ ${1}inorganic.org

I've made no changes to main.cf because there doesn't seem to be a need to
include alias domains in both virtual and, say, mydestination. postconf -n
output is attached, of course.

Unfortunately, mailing to somethingrsr.users.inorganic.org gets me a
bounce with the dreaded
---
Diagnostic-Code: X-Postfix; mail for rsr.users.inorganic.org loops back to mysel
---

And these logfile entries:
---
16.239.56.246]
Jun 1 23:30:49 puppy postfix/smtpd[15774]: [ID 197553 mail.info] connect from mproxy.gmail.com[216.239.56.249]
Jun 1 23:30:49 puppy postfix/smtpd[15774]: [ID 197553 mail.info] 67CCD43E1: client=mproxy.gmail.com[216.239.56.249]
Jun 1 23:30:49 puppy postfix/cleanup[15777]: [ID 197553 mail.info] 67CCD43E1: message-id=<d9e4c7fc04060123302d52216amail.gmail.com>
Jun 1 23:30:49 puppy postfix/qmgr[15769]: [ID 197553 mail.info] 67CCD43E1: from=<royrapoportgmail.com>, size=743, nrcpt=2 (queue active)
Jun 1 23:30:49 puppy postfix/smtpd[15774]: [ID 197553 mail.info] disconnect from mproxy.gmail.com[216.239.56.249]
Jun 1 23:30:49 puppy postfix/smtp[15778]: [ID 197553 mail.info] 67CCD43E1: to=<whateverrsr.users.inorganic.org>, relay=none, delay=0, status=bounced (mail for rsr.users.inorganic.org loops back to myself)
---

What am I missing? What docs should I be reading to figure this out?

-roy


 
Inbound connections through Cisco PIX failing?

From: Erik Forsberg (forsberg+pfucendio.se)
Date: Wed Jun 02 2004 - 02:42:21 CDT


Hi!

I have a problem at a customer site, with a newly installed Postfix
version 2.1.1. The Postfix machine is behind a Cisco PIX firewall, as
seen by trying to connect from the outside:

220 SMTP/cmap ready_________________________________________________________________

Now, the problem is that mail from hotmail, and quite a few other
domains, doesn't arrive as expected. The only thing seen in the
Postfix logs are entries like these:

May 28 04:16:27 eskil postfix/smtpd[14289]: connect from bay17-f42.bay17.hotmail.com[64.4.43.92]
May 28 04:16:28 eskil postfix/smtpd[14289]: disconnect from bay17-f42.bay17.hotmail.com[64.4.43.92]

There is nothing inbetween the two lines above for that particular
smtpd process.

I suspect this is a problem with the Cisco PIX. Unfortunately, I don't
know the exact version of the PIX, nor have I been able to put
hotmail.com in the debug_peer_list to get more info out of Postfix,
and currently the customer has gone back to his old Sendmail
configuration (which works flawlessly for all inbound connections).

Any ideas on this? I know there was problems with Postfix _sending_
mail to other servers behind a Cisco PIX, a few years ago, but I
haven't heard of the other direction. On the other hand, I've been off
this list a while.. I couldn't find any relevant Google hits or FAQ
entries.

Regards,
\EF
--
Erik Forsberg Telephone: +46-13-21 46 00
Cendio AB Web: http://www.cendio.com
                             


 
RE: Inbound connections through Cisco PIX failing?

From: Paul Hutchings (paul.hutchingsmira.co.uk)
Date: Wed Jun 02 2004 - 02:46:30 CDT


Usually when PIX issues occur disabling smtp fixup seems to be the
suggestion.

regards,
Paul
--
Paul Hutchings
Network Administrator, MIRA Ltd.
Tel: 44 (0)24 7635 5378, Fax: 44 (0)24 7635 8378
mailto:paul.hutchingsmira.co.uk

> -----Original Message-----
> From: Erik Forsberg [mailto:forsberg+pfucendio.se]
> Sent: 02 June 2004 08:42
> To: postfix-userspostfix.org
> Subject: Inbound connections through Cisco PIX failing?
>
>
> Hi!
>
> I have a problem at a customer site, with a newly installed Postfix
> version 2.1.1. The Postfix machine is behind a Cisco PIX firewall, as
> seen by trying to connect from the outside:
>
> 220 SMTP/cmap
> ready_________________________________________________________________
>
> Now, the problem is that mail from hotmail, and quite a few other
> domains, doesn't arrive as expected. The only thing seen in the
> Postfix logs are entries like these:
>
> May 28 04:16:27 eskil postfix/smtpd[14289]: connect from
> bay17-f42.bay17.hotmail.com[64.4.43.92]
> May 28 04:16:28 eskil postfix/smtpd[14289]: disconnect from
> bay17-f42.bay17.hotmail.com[64.4.43.92]
>
> There is nothing inbetween the two lines above for that particular
> smtpd process.
>
> I suspect this is a problem with the Cisco PIX. Unfortunately, I don't
> know the exact version of the PIX, nor have I been able to put
> hotmail.com in the debug_peer_list to get more info out of Postfix,
> and currently the customer has gone back to his old Sendmail
> configuration (which works flawlessly for all inbound connections).
>
> Any ideas on this? I know there was problems with Postfix _sending_
> mail to other servers behind a Cisco PIX, a few years ago, but I
> haven't heard of the other direction. On the other hand, I've been off
> this list a while.. I couldn't find any relevant Google hits or FAQ
> entries.
>
> Regards,
> \EF
> --
> Erik Forsberg Telephone: +46-13-21 46 00
> Cendio AB Web: http://www.cendio.com
>
>


 
Re: Greylisting and whitelists for bad mailers???

lst_hoe01kwsoft.de
Date: Wed Jun 02 2004 - 03:05:05 CDT


Zitat von Ralf Hildebrandt <Ralf.Hildebrandtcharite.de>:

> * Jason Fesler <jfeslergigo.com>:
>
> > Also, ebay's retry times seem to be about *4h*.
>
> Got a list of their outbound relays?

This was the first domain i included in the whitelist for greylisting ...
A simple "ebay.com OK" should do the trick.

Regards

Andreas


 
Postfix, MySQL based virtual domains and Mailman

From: Peter Kiem (zordahzordah.net)
Date: Wed Jun 02 2004 - 03:05:27 CDT


I'm running Postfix 2.1.1-3 with completely virtual domains (no local user
accounts) with the domain info coming from MySQL database. Also hands out
to Amavisd-new for spam and virus checking.

I've tried to integrate Mailman into the setup and I just cannot get it to
recognise the mailman aliases.

Here's a short summary of what I have tried to do:

1. Ensured localhost is in $mydestination
2. Added the mailman aliases file to $alias_database and $alias_maps
3. Built the alias db with newaliases
4. Put in a virtual alias of mailmanzordah.net -> mailmanlocalhost

When I send email to mailmanzordah.net I get 450 4.1.0
<mailmanlocalhost.zordah.net>: Recipient address rejected: User unknown
in local recipient table (in reply to end of DATA command)

That should work, right?

postconf -n
===========
alias_database = hash:/etc/postfix/aliases, hash:/home/mailman/aliases
alias_maps = hash:/etc/postfix/aliases, hash:/home/mailman/aliases
body_checks = regexp:/etc/postfix/body_checks
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = /usr/share/doc/postfix-2.1.1-documentation/html
inet_interfaces = 127.0.0.1, 202.173.151.130
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 5120000
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = caramon.zordah.net
mynetworks = 127.0.0.0/8, 192.168.0.0/16, 202.173.151.128/28
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
notify_classes = bounce, 2bounce, delay, policy, protocol, resource, software
owner_request_special = no
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.1-documentation/readme
relay_domains = lists.zordah.net
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_hard_error_limit = 10
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, check_client_access
hash:/etc/postfix/helo_ip_whitelist, check_helo_access
regexp:/etc/postfix
/helo_regexp, reject_invalid_hostname
smtpd_junk_command_limit = 3
smtpd_recipient_restrictions = reject_non_fqdn_sender,
reject_non_fqdn_recipient, permit_mynetworks, reject_unauth_destination,
 check_rec
ipient_access hash:/etc/postfix/per_user_rules, check_client_access
hash:/etc/postfix/client_checks, check_client_access hash:/etc/postfix/
zordah_client, check_client_access
regexp:/etc/postfix/zordah_client_regexp, check_sender_access
hash:/etc/postfix/spamtrap.senders, check
_sender_access hash:/etc/postfix/sender_checks, check_sender_access
regexp:/etc/postfix/sender_checks_regexp, check_recipient_access hash:/
etc/postfix/recipient_checks, check_recipient_access
regexp:/etc/postfix/recipient_checks_regexp, check_sender_access
hash:/etc/postfix/zor
dah, reject_unknown_sender_domain, reject_unknown_recipient_domain,
reject_unauth_pipelining, reject_rbl_client dnsbl.njabl.org, reject_
rbl_client http.dnsbl.sorbs.net, reject_rbl_client socks.dnsbl.sorbs.net,
 reject_rbl_client misc.dnsbl.sorbs.net, reject_rbl_client smtp.d
nsbl.sorbs.net, reject_rbl_client web.dnsbl.sorbs.net, reject_rbl_client
list.dsbl.org, reject_rbl_client opm.blitzed.org, check_sender_a
ccess hash:/etc/postfix/strict_sender_map, permit
smtpd_restriction_classes = strict_client_domain,
tafi_greenfroglover_com_rules
smtpd_soft_error_limit = 5
soft_bounce = yes
strict_rfc821_envelopes = yes
syslog_facility = local1
transport_maps = hash:/etc/postfix/transport
unknown_address_reject_code = 554
unknown_client_reject_code = 554
unknown_hostname_reject_code = 554
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/virtual_alias.cf
virtual_gid_maps = mysql:/etc/postfix/virtual_gid.cf
virtual_mailbox_base = /home/mail
virtual_mailbox_domains = mysql:/etc/postfix/virtual_domain.cf
virtual_mailbox_maps = mysql:/etc/postfix/virtual_mailbox.cf
virtual_minimum_uid = 500
virtual_uid_maps = mysql:/etc/postfix/virtual_uid.cf

/home/mailman/aliases
=====================
mailman: "|/home/mailman/mail/mailman post mailman"

/etc/postfix/virtual_alias.cf
=============================
user=xxxx
password=yyyy
dbname=zzzz
table=alias
select_field=username
where_field=alias
hosts=localhost

Alias Table
===========
select * from alias where alias like '%zordah.net';
+-------------------------+--------------------------+
| alias | username |
+-------------------------+--------------------------+
| abusezordah.net | postmasterzordah.net |
| postmasterzordah.net | zordahzordah.net |
| pkiemzordah.net | zordahzordah.net |
| mailmanzordah.net | mailmanlocalhost |
+-------------------------+--------------------------+

Anything I have forgotten?

--
Regards,
+-----------------------------+---------------------------------+
| Peter Kiem .^. | E-Mail : <zordahzordah.net> |
| Zordah IT /V\ | Mobile : +61 0414 724 766 |
| IT Consultancy & /( )\ | WWW : www.zordah.net |
| Internet Services ^^-^^ | ICQ : "Zordah" 866661 |
+-----------------------------+---------------------------------+
       My current spamtrap address is est0604zordah.net


 
Re: smtp auth question

lst_hoe01kwsoft.de
Date: Wed Jun 02 2004 - 03:12:50 CDT


Zitat von Omer Faruk Sen <omerfaruk.net>:

>
> Hi,
>
> I have realised on my mail server that when users are authenticated
> against my smtp server they can change From: field with different username
> within my domain. MS outlook express allows you to specify different
> SMTP-AUTH username/pass than your account. Thus a clever!! user can abuse
> it with authenticating against my smtp server but can send mails under
> another account. Is there a way to prevent this?

Have a look at the reject_sender_login_mismatch and
reject_authenticated_sender_login_mismatch settings.

Regards

Andreas
 


 
Re: Adding Message-ID is wrong

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Wed Jun 02 2004 - 03:15:50 CDT


On Wed, Jun 02, 2004 at 03:01:07AM +0200, Cami wrote:

> Forgot to mention this little bit..
> If SpamAssassin finds no Message-ID in the message:
>
[zero points]
>
> So according to SpamAssasin, having no Message-ID is fine..

That is correct. As wietse already said: the message-ID is optional.

cheers,
Alex
--
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If
you reply to me off-list, you'd better tell me you're doing so. If
you don't, and if I reply to the list, that's your problem, not mine.


 
Re: Adding Message-ID is wrong

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Wed Jun 02 2004 - 03:27:13 CDT


On Wed, Jun 02, 2004 at 07:51:55AM +0200, Ralf Hildebrandt wrote:
> > I know next to nothing (nor does postfix) about the client connecting
> > over the internet. Why would I want to add -my- domain to the
> > headers? Why confuse my users?
>
> You do have a point there, and that's a long standing issue with
> Postfix.
> But Postfix cannot know if it's an initial submission or if Postfix is
> performing relay duties.

Correct me if I'm wrong:

Suppose I configure master.cf to have an smtpd listening to the outside,
and one listening to the inside. I do not want initial submission on the
outside smtpd. The only initial submission allowed is postfix-generated
email (bcc, bounces, maybe more). If a configurable option would exist,
such as "fix_headers = permit_mynetworks, reject" I think a lot of users
would be happy.

Similar story for a relay-only MTA that needs just one smtpd of course.

> On a setup like here, where hauptpostamt.charite.de is just a relay,
> we might as well turn the message-id generation off. Unfortunately, we
> need to keep the function append_at_myorigin, or all our virtual
> aliasing will break. I could fix that, but that would be a lot of work.

Am I wrong when I think message-id is generated from $myhostname and
append_at_myorigin is for From/To fixes ?

Unfortunately there's lots of questions and lots of warnings about
append_at_myorigin. So far I've been unable to determine what would
happen *exactly*. I know I have to be very carefull with aliases and
such. Any insight in this would be much appreciated, especially since
that topic is very close related to my original post.

cheers,
Alex
--
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If
you reply to me off-list, you'd better tell me you're doing so. If
you don't, and if I reply to the list, that's your problem, not mine.


 
Re: Adding Message-ID is wrong

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Wed Jun 02 2004 - 03:39:37 CDT


On Wed, Jun 02, 2004 at 02:55:27AM +0200, Cami wrote:

> > So therefore I stand by my claim that adding a message-id is wrong. In
> > the message itself I stated that opinions and setups may differ so the
> > process should be configurable. I regret if my wordings are misinterpreted
> > however I have done my homework.
>
> Just so i make my point known, the Message-ID bit is not really an
> issue for me.. Its the From:/To: fields that cause the headaches..

Similar over here. For now, I think a missing message-id is a clear
sign of unwanted email; the exceptions can be whitelisted. If such
a message is presented to me I hate to waste resources. Malformed
From/To and missing message-id seems to go hand in hand.

Therefore I tried to filter on missing header-ids. No go. header_checks
are done _before_ postfix adds the message-id. Even if this would be done
the other way around one cannot simply reject all messages with a
message-id using the local hostname.

cheers,
Alex
--
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If
you reply to me off-list, you'd better tell me you're doing so. If
you don't, and if I reply to the list, that's your problem, not mine.


 
BCC problem

yeskwms15.hinet.net
Date: Wed Jun 02 2004 - 03:42:23 CDT


Is there any way to know who are RCPT TO hiding behind the outgoing mail?
because some peoples used to use outlook send mail out through postfix
server, the BCC he don't know has been added in outgoing mail, and he said
he never added it in BCC field under outlook.


 
Re: Adding Message-ID is wrong

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 03:48:55 CDT


>>>So therefore I stand by my claim that adding a message-id is wrong. In
>>>the message itself I stated that opinions and setups may differ so the
>>>process should be configurable. I regret if my wordings are misinterpreted
>>>however I have done my homework.
>>
>>Just so i make my point known, the Message-ID bit is not really an
>>issue for me.. Its the From:/To: fields that cause the headaches..
>
>
> Similar over here. For now, I think a missing message-id is a clear
> sign of unwanted email; the exceptions can be whitelisted. If such

This is definately *NOT* true.. There are far too many legit mails
to be whitelisted..

> a message is presented to me I hate to waste resources. Malformed
> From/To and missing message-id seems to go hand in hand.
>
> Therefore I tried to filter on missing header-ids. No go. header_checks
> are done _before_ postfix adds the message-id. Even if this would be done
> the other way around one cannot simply reject all messages with a
> message-id using the local hostname.

You will lose/reject legimate mail by blocking mail with no Message-ID..

Cami


 
Re: Virtual hosting with cyrus (mailboxes called userfoo.domain)

From: Josef Karthauser (joetao.org.uk)
Date: Wed Jun 02 2004 - 03:55:16 CDT


On Wed, Jun 02, 2004 at 02:30:45AM +0100, Josef Karthauser wrote:
>
> Strangely if I attempt to deliver mail to test3josef-k.net I get:
>
> Jun 2 02:10:14 transwarp postfix/qmgr[65370]: 624B4EA52: from=<roottao.org.uk>, size=304, nrcpt=1 (queue active)
> Jun 2 02:10:14 transwarp postfix/pipe[65469]: 624B4EA52: to=<test3josef-k.net>, relay=cyrusx, delay=0, status=bounced (data format error. Command output: test3josef-k.net: Mailbox does not exist )
>
> Why is cyrusx trying to deliver mail to test3josef-k.net? It's not
> mentioned in the vmailboxes file. Shouldn't something be saying
> user-unknown before it attempts the delivery agent?
>

I've found the answer to this. The address is only rejected in the smtpd
agent, whereas I'm delivering mail from the command line via 'mail'. If
I deliver it over SMTP then it works fine.

Last question (if anyone is listening... is there anyone there?)

I've now got:

    main.cf:
        cyrusx_destination_recipient_limit=1
        virtual_mailboxes = hash:/usr/local/etc/postfix/vmailboxes
        virtual_transport = cyrusx
        virtual_mailbox_domains = $virtual_mailboxes
        virtual_mailbox_maps = $virtual_mailboxes
        virtual_alias_maps = $virtual_maps

    virtual:
        josef-k.net testjosef-k.net
        mejosef-k.net joetao.org.uk
        youjosef-k.net testjosef-k.net

    vmailboxes:
        josef-k.net *
        #----------
        testjosef-k.net *
        test2josef-k.net *

Something is going wrong with the "catch-all" address "josef-k.net".
It appears that mail to test2josef-k.net is being picked up by the
catch all in 'virtual' and being delivered to test instead of test2.

Is this a misconfiguration on my part, or a "feature" of postfix?

I'd really appreciate any insight that can be offered.

Many thanks,

Joe
--
Josef Karthauser (joetao.org.uk) http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/
Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iEYEARECAAYFAkC9lfQACgkQXVIcjOaxUBbMvwCZAQMLQWhVFxu7ea67eR0QsPaT
YOwAoNP70SVevsNokfPk/bAaANJVeHOQ
=WKa5
-----END PGP SIGNATURE-----


 
Re: smtp auth question

From: Omer Faruk Sen (omerfaruk.net)
Date: Wed Jun 02 2004 - 04:10:32 CDT


I have used reject_sender_login_mismatch but I have one problem though: My
clients authenticate themselves using username "username" (not
usernamedomainname.com) but this is done. This time
reject_sender_login_mismatch works and reject message with a 553 error:

Protocol SMTP, Server Response: 553 <userxdomain.com>: Sender address
rejected: not owned by user userx

Is there a workaround for that in postfix since I use saslauthd -a shadow
(I mean against /etc/shadow) and can't change that.

> Zitat von Omer Faruk Sen <omerfaruk.net>:
>
>>
>> Hi,
>>
>> I have realised on my mail server that when users are authenticated
>> against my smtp server they can change From: field with different
>> username
>> within my domain. MS outlook express allows you to specify different
>> SMTP-AUTH username/pass than your account. Thus a clever!! user can
>> abuse
>> it with authenticating against my smtp server but can send mails under
>> another account. Is there a way to prevent this?
>
> Have a look at the reject_sender_login_mismatch and
> reject_authenticated_sender_login_mismatch settings.
>
> Regards
>
> Andreas
>
>

--
Omer Faruk Sen
http://www.faruk.net
Public Key: http://www.faruk.net/omer.asc


 
Re: smtp auth question

lst_hoe01kwsoft.de
Date: Wed Jun 02 2004 - 04:02:44 CDT


Zitat von Omer Faruk Sen <omerfaruk.net>:

> I have used reject_sender_login_mismatch but I have one problem though: My
> clients authenticate themselves using username "username" (not
> usernamedomainname.com) but this is done. This time
> reject_sender_login_mismatch works and reject message with a 553 error:
>
> Protocol SMTP, Server Response: 553 <userxdomain.com>: Sender address
> rejected: not owned by user userx
>
>
> Is there a workaround for that in postfix since I use saslauthd -a shadow
> (I mean against /etc/shadow) and can't change that.

Use the smtpd_sender_login_maps and set :
userxdomain.com userx
userydomain.com usery
....

Regards

Andreas


 
Re: Automtic User Subdomains

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Jun 02 2004 - 04:12:27 CDT


On Wednesday, June 02, 2004 at 08:36 CEST,
     "Roy S. Rapoport" <postfix-usersols.inorganic.org> wrote:

> For each user named 'foo' on my system, I'd like to have it so
> '<ANYTHING>foo.users.inorganic.org' goes to fooinorganic.org
>
> Normally, I'd need two entries in virtual:
> foo.users.inorganic.org filler
> foo.users.inorganic.org fooinorganic.org
>
> It _looked_ like (reading virtual and regexp_table) I could do the second
> half automatically thus:
> /(.*).users.inorganic.org/ ${1}inorganic.org
>
> So I figured maybe I'd be able to do this with the first line also,
> resulting in these two lines in my virtual table:
> /(.*).users.inorganic.org/ filler
> /(.*).users.inorganic.org/ ${1}inorganic.org

Better:

/\.users\.inorganic\.org$/ filler
/(.*)\.users\.inorganic\.org$/ ${1}inorganic.org

There is however a major design flaw; the first expression matches
everything the second expression matches. This means that
somethingfoo.users.inorganic.org will be rewritten to filler$myorigin.
You can fix this by reversing the order of the lines, or rather rewrite
the first expression.

/^[^]+\.users\.inorganic\.org$/ filler
/(.*)\.users\.inorganic\.org$/ ${1}inorganic.org

I don't know if this will remedy your actual problem, but it's certainly
a start.

[...]

--
Magnus Bäck
magnusdsek.lth.se


 
Re: BCC problem

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Jun 02 2004 - 04:13:30 CDT


On Wednesday, June 02, 2004 at 10:42 CEST,
     yeskwms15.hinet.net wrote:

> Is there any way to know who are RCPT TO hiding behind the outgoing
> mail? because some peoples used to use outlook send mail out through
> postfix server, the BCC he don't know has been added in outgoing mail,
> and he said he never added it in BCC field under outlook.

The Postfix logs will reveal all recipients of a message.

--
Magnus Bäck
magnusdsek.lth.se


 
Re: Adding Message-ID is wrong

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Wed Jun 02 2004 - 04:13:24 CDT


On Tue, Jun 01, 2004 at 08:39:16PM -0400, Wietse Venema wrote:
> Alex van den Bogaerdt:
> > As far as I can tell:
> > - mail without a message-id is spam or virus, perhaps a few exceptions
>
> I added a missing message ID warning and found that it would drop
> legitimate SMTP mail that was forwarded by qmail. That was enough of
> an exeption for me to not provide this as a spam blocking feature.

That may be so, but I, in my setup, have not seen legitimate messages
without message-id as far as I can remember . That doesn't mean there
won't be any but it does mean I _probably_ be better of whitelisting
some exceptions and blocking the rest, ignoring the fact that there
is collateral damage.

My message also tries to discuss altering From and To. This is
discussed in rfc2821 as well, together with message-id.

I don't know qmail so there's a good chance that the following is
at least partially incorrect:

When qmail is used to inject mail, it uses "idhost" to generate
a message-Id. In other words: initial submission by qmail does
provide a message-id.

I take your word for it that qmail does forward mail without adding
a message-Id. Also, I've read that bounces from qmail do not contain
a message-Id.

> There has to be a better reason than being strict to the letter of
> some RFC that was written when Postfix already existed.

I'm not going over every RFC just to pester you. I'm looking at this
issue (message-id _and_ From/To) for many moons now and cannot reliably
work around it. Other people have problems with it as well.

Real people, real problem. And an RFC that IMHO supports my concerns.

quoting myself:
> I understand that this subject is controversial, so it should be
> configurable.

I'm not going to quote an entire post so if you want to comment on
_what_ I say in stead of _how_ I say it, please have another look
at my first post in this thread.

cheers,
Alex
--
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If
you reply to me off-list, you'd better tell me you're doing so. If
you don't, and if I reply to the list, that's your problem, not mine.


 
Re: Automtic User Subdomains

From: Roy S. Rapoport (postfix-usersols.inorganic.org)
Date: Wed Jun 02 2004 - 04:16:22 CDT


On Wed, Jun 02, 2004 at 11:12:27AM +0200, Magnus Bck wrote:
> /^[^]+\.users\.inorganic\.org$/ filler
> /(.*)\.users\.inorganic\.org$/ ${1}inorganic.org
>
> I don't know if this will remedy your actual problem, but it's certainly
> a start.

Alas, the same problem continues :(

-roy


 
Re: Content_filter for certain users only

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Jun 02 2004 - 04:20:02 CDT


On Wednesday, June 02, 2004 at 08:32 CEST,
     "Figaro, Nicolas" <nfigarocdcixis-cm.com> wrote:

> I wish to use a content filter for certain users only.

"User" means nothing in SMTP (except with authentication). Are you
talking about sender addresses or recipient addresses?

Look into the FILTER access map action (man 5 access).

[...]

--
Magnus Bäck
magnusdsek.lth.se


 
Re: Adding Message-ID is wrong

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 04:18:13 CDT


* Alex van den Bogaerdt <alexergens.op.het.net>:

> Suppose I configure master.cf to have an smtpd listening to the outside,
> and one listening to the inside.

Yes, that's easy.

> Am I wrong when I think message-id is generated from $myhostname and
> append_at_myorigin is for From/To fixes ?

Yes, but the whole thread diverges into two directions: FROM/TO
alteration and Message-Id generation.
 
--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
So whenever someone says: "it works with Sendmail, so it must be
a Postfix bug" my initial reaction is "yeah, right".


 
Re: Adding Message-ID is wrong

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Wed Jun 02 2004 - 04:26:57 CDT


On Wed, Jun 02, 2004 at 11:18:13AM +0200, Ralf Hildebrandt wrote:

> Yes, but the whole thread diverges into two directions: FROM/TO
> alteration and Message-Id generation.

Maybe I should separate these issues. I think the FROM/TO is causing
unnecesarry helpdesk trouble and I think the message-id issue is a
sign of spammyness. Both Cami and Wietse strongly disagree on that
last part.

If you want to further discuss FROM/TO separate from Message-ID,
maybe you could change the subject to (zB) "append_at_myorigin".

cheers,
Alex

--
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If
you reply to me off-list, you'd better tell me you're doing so. If
you don't, and if I reply to the list, that's your problem, not mine.


 
RE: Content_filter for certain users only

From: Figaro, Nicolas (nfigarocdcixis-cm.com)
Date: Wed Jun 02 2004 - 04:26:44 CDT


> -----Original Message-----
> From: Magnus Bäck [mailto:magnusdsek.lth.se]
> Sent: Wednesday, June 02, 2004 11:20 AM
> To: postfix-userspostfix.org
> Subject: Re: Content_filter for certain users only
>
> On Wednesday, June 02, 2004 at 08:32 CEST,
> "Figaro, Nicolas" <nfigarocdcixis-cm.com> wrote:
>
> > I wish to use a content filter for certain users only.
>
> "User" means nothing in SMTP (except with authentication).
> Are you talking about sender addresses or recipient addresses?
>
> Look into the FILTER access map action (man 5 access).

I found some infos in the access man page.
And users means recipient.

Thanks for the reply.

NF
>
> [...]
>
> --
> Magnus Bäck
> magnusdsek.lth.se
>
>


 
single external user

From: Peter Scholl (peter.schollunix-ag.org)
Date: Wed Jun 02 2004 - 04:46:53 CDT


Hello

I have a postfix server, managing a single domain. The domain is hosted at
a provider and the mail is fetched via POP3 to the Postfix-System.

There is a single external user who has his own POP3 Account and fetches
the mail directly via POP3.

How can I tell postfix to rediret the mail for this user to the external
provider and not to deliver it locally? A single email in the transport
map does not work :-( I hope there is a nice way to do this.

Thanks for your help
Peter


 
Re: single external user

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Jun 02 2004 - 05:03:50 CDT


On Wednesday, June 02, 2004 at 11:46 CEST,
     Peter Scholl <peter.schollunix-ag.org> wrote:

> I have a postfix server, managing a single domain. The domain is hosted at
> a provider and the mail is fetched via POP3 to the Postfix-System.
>
> There is a single external user who has his own POP3 Account and fetches
> the mail directly via POP3.
>
> How can I tell postfix to rediret the mail for this user to the external
> provider and not to deliver it locally? A single email in the transport
> map does not work :-( I hope there is a nice way to do this.

To redirect without rewriting the recipient address, use transport_maps.
Per-user transport map entries requires Postfix 2.0. To redirect by
rewriting the recipient address, use aliases (local or virtual).

--
Magnus Bäck
magnusdsek.lth.se


 
Re: Best POP/IMAP Server

From: Tom Allison (tallisontacocat.net)
Date: Wed Jun 02 2004 - 05:21:04 CDT


Robin Lynn Frank wrote:
> On Tuesday 01 June 2004 13:08, Matt Krause wrote:
>
>>Forgive me for writing out this to the Postfix group, but I was wanting
>>the opinion of Postfix users as to what the best POP/IMAP server is to
>>run over the top of Postfix. Right now, but I am using the Courier
>>servers, but am unhappy with the amount of information in the log files.
>> Can anyone tell me what Qpoppers logs files are like and how detailed
>>you can make them? Also, are there any other decent IMAP servers out
>>there?
>>
>>Thanks.
>
>
> My vote is for courier-imap. It takes advantage of postfix's ability to
> deliver to a maildir and, if configured (easy) first, will generate its own
> TLS certs (both for imap and pop3) the first time you fire it up.
>
> Cyrus-imap looks interesting, but its configuration is a bit more challenging.
> --
> BOFH excuse #187:
>
> Reformatting Page. Wait...

If you use procmail, don't you lose this maildir delivery advantage you
speak of? I use courier-imap and found it to be OK. There may be some
issues, but I haven't been bothered enough to really address them.

dovecot might be worth investigating. I hear good things about it.

cyrus-imap has some great performance capabilities but the filtering
language (sieve) is severely limited in comparison to maildrop and
procmail. It's probably more secure as well because of this. But it is
by no means a maildir delivery system. I made that assumption and
deleted an email once through the command line. Took me forever to get
things working again. I gave up on it because of an overall lack of
documentation and capability in sieve.


 
RE: Inbound connections through Cisco PIX failing?

From: Elijah Savage (esavagedigitalrage.org)
Date: Wed Jun 02 2004 - 05:24:04 CDT


Here is the command for disabling fixup on the pix for smtp, this was
once my problem also and I thought this was in the FAQ I know I read it
somewhere but no big deal.

Here are the commands you need

Login to the pix in enable mode

conf t

no fixup protocol smtp 25

That is all you need.

> -----Original Message-----
> From: owner-postfix-userspostfix.org [mailto:owner-postfix-
> userspostfix.org] On Behalf Of Paul Hutchings
> Sent: Wednesday, June 02, 2004 3:47 AM
> To: postfix-userspostfix.org
> Subject: RE: Inbound connections through Cisco PIX failing?
>
> Usually when PIX issues occur disabling smtp fixup seems to be the
> suggestion.
>
> regards,
> Paul
> --
> Paul Hutchings
> Network Administrator, MIRA Ltd.
> Tel: 44 (0)24 7635 5378, Fax: 44 (0)24 7635 8378
> mailto:paul.hutchingsmira.co.uk
>
> > -----Original Message-----
> > From: Erik Forsberg [mailto:forsberg+pfucendio.se]
> > Sent: 02 June 2004 08:42
> > To: postfix-userspostfix.org
> > Subject: Inbound connections through Cisco PIX failing?
> >
> >
> > Hi!
> >
> > I have a problem at a customer site, with a newly installed Postfix
> > version 2.1.1. The Postfix machine is behind a Cisco PIX firewall,
as
> > seen by trying to connect from the outside:
> >
> > 220 SMTP/cmap
> >
ready_________________________________________________________________
> >
> > Now, the problem is that mail from hotmail, and quite a few other
> > domains, doesn't arrive as expected. The only thing seen in the
> > Postfix logs are entries like these:
> >
> > May 28 04:16:27 eskil postfix/smtpd[14289]: connect from
> > bay17-f42.bay17.hotmail.com[64.4.43.92]
> > May 28 04:16:28 eskil postfix/smtpd[14289]: disconnect from
> > bay17-f42.bay17.hotmail.com[64.4.43.92]
> >
> > There is nothing inbetween the two lines above for that particular
> > smtpd process.
> >
> > I suspect this is a problem with the Cisco PIX. Unfortunately, I
don't
> > know the exact version of the PIX, nor have I been able to put
> > hotmail.com in the debug_peer_list to get more info out of Postfix,
> > and currently the customer has gone back to his old Sendmail
> > configuration (which works flawlessly for all inbound connections).
> >
> > Any ideas on this? I know there was problems with Postfix _sending_
> > mail to other servers behind a Cisco PIX, a few years ago, but I
> > haven't heard of the other direction. On the other hand, I've been
off
> > this list a while.. I couldn't find any relevant Google hits or FAQ
> > entries.
> >
> > Regards,
> > \EF
> > --
> > Erik Forsberg Telephone: +46-13-21 46 00
> > Cendio AB Web: http://www.cendio.com
> >
> >


 
Re: Automtic User Subdomains

From: Roy S. Rapoport (postfix-usersols.inorganic.org)
Date: Wed Jun 02 2004 - 05:30:14 CDT


D'oh.

virtual _supports_ regular expressions. But if you want to use regular
expressions, you've got to change
virtual_alias_maps = hash:/etc/postfix/virtual

to

virtual_alias_maps = regexp:/etc/postfix/virtual

(and tweak the rest of your expressions in virtual; you quite likely could
just use two maps, but I didn't bother setting it up).

It's all working now. Thanks for the help, and my apologies for not
understanding this well enough the first time.

-roy


 
Re: Best POP/IMAP Server

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 06:07:44 CDT


* Tom Allison <tallisontacocat.net>:

> If you use procmail, don't you lose this maildir delivery advantage you
> speak of?

No, procmail can deliver to Maildir

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
There are two ways to write error-free programs. Only the third one
works.


 
Re: Best POP/IMAP Server

From: Tom Allison (tallisontacocat.net)
Date: Wed Jun 02 2004 - 06:24:24 CDT


Ralf Hildebrandt wrote:
> * Tom Allison <tallisontacocat.net>:
>
>
>>If you use procmail, don't you lose this maildir delivery advantage you
>>speak of?
>
>
> No, procmail can deliver to Maildir
>

Right, but I was trying to clarify on the statement that courier-imap
takes advantage of the postfix maildir delivery.

If you run procmail, then you've intercepted that connection between
postfix and courier and effectively replaced any advantage/disadvantage
of postfix delivering to a maildir folder.

But for many who don't use procmail, this would be a consideration.


 
Re: Adding Message-ID is wrong

Victor.DuchovniMorganStanley.com
Date: Wed Jun 02 2004 - 06:35:03 CDT


On Wed, 2 Jun 2004, Alex van den Bogaerdt wrote:

> Real people, real problem. And an RFC that IMHO supports my concerns.
>

Time to get a life, real RFCs can be real wrong, especially when making
gratuituous revisions to existing standards, see for example the text in
RFC 2821 that says that a 552 error should be treated as a 452 error.

Perhaps the problem can be fixed in RFC 4821/4822, it may be time to start
writing them :-)

The message-id insertion is by all admissions harmless and is useful for
tracking message delivery accross multiple hops when the remote 250 Ok
does not include a queue id.

The addition of mydomain to header recipients is done only for messages
that are already not RFC conformant.

The behaviour of the MTA for such input is not specified by the RFC. The
RFC does not apply. When the message is a local submission, the right
thing to do for legacy unix (especially Sendmail) clients is to append the
local domain. Since the input is malformed, there is no right approach in
any other case, so the same at least sometimes right approach is used.

Furthermore, if you configure a split relay (input handled by different
Postfix instance than output) "myorigin = address.invalid" nicely solves
the problem of how to qualify broken mail.

The result is that Postfix emits RFC conformant output even with
non-conformant input. Lets move on to another topic please.

And yes, one day headers processing will be more configurable, but there
are more important issues to deal with first...

--
        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:majordomopostfix.org?body=unsubscribe%20postfix-users>


 
Re: smtp auth question

From: Omer Faruk Sen (omerfaruk.net)
Date: Wed Jun 02 2004 - 06:50:10 CDT


Instead of using:

smtpd_sender_login_maps and set :
userxdomain.com userx
userydomain.com usery

I have used that for ease of use:

cat /etc/postfix/sender_login_maps

/^(.*)domain.com/ ${1}

> Zitat von Omer Faruk Sen <omerfaruk.net>:
>
>> I have used reject_sender_login_mismatch but I have one problem though:
>> My
>> clients authenticate themselves using username "username" (not
>> usernamedomainname.com) but this is done. This time
>> reject_sender_login_mismatch works and reject message with a 553 error:
>>
>> Protocol SMTP, Server Response: 553 <userxdomain.com>: Sender address
>> rejected: not owned by user userx
>>
>>
>> Is there a workaround for that in postfix since I use saslauthd -a
>> shadow
>> (I mean against /etc/shadow) and can't change that.
>
> Use the smtpd_sender_login_maps and set :
> userxdomain.com userx
> userydomain.com usery
> ....
>
>
> Regards
>
> Andreas
>

--
Omer Faruk Sen
http://www.faruk.net
Public Key: http://www.faruk.net/omer.asc


 
Re: Adding Message-ID is wrong

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 06:39:20 CDT


> The message-id insertion is by all admissions harmless and is useful for
> tracking message delivery accross multiple hops when the remote 250 Ok
> does not include a queue id.

Indeed..

> Furthermore, if you configure a split relay (input handled by different
> Postfix instance than output) "myorigin = address.invalid" nicely solves
> the problem of how to qualify broken mail.

However that doesnt resolve what happens when users try and reply to
such addresses..

> The result is that Postfix emits RFC conformant output even with
> non-conformant input. Lets move on to another topic please.
>
> And yes, one day headers processing will be more configurable, but there
> are more important issues to deal with first...

Amen..

Cami


 
Re: NFS Maildirs

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 06:36:36 CDT


>> We have our entire solution certified and supported by EMC..
>> They have strict requirements on OS/drivers etc etc, but its
>> proven to provide far more joy in the long run..
>
> Unless all mail/imap/pop servers can share the whole spool in between
> them, all the other (SAN) solutions are limited by having only one
> concurrent server accessing the spool.

Yup.. We have 9 active (and 9 passive mailhosts) with 150gig of space
on each LUN/mailstore.. The entire userbase is spread out evenly over
all the mailhosts which makes things a pure dream to admin/maintain..

Everything ofcourse is complete transparent to the entire userbase so
no user ever has to know on which mailhost they reside on..

Cami


 
RE: Inbound connections through Cisco PIX failing?

From: Elijah Savage (esavagedigitalrage.org)
Date: Wed Jun 02 2004 - 06:29:52 CDT


Oh yeah one lst thing I forgot make sure you

wr mem

On ths pix when you are done to save the current running config to
startup config because if not if you reboot it or loose power it will go
back to the old config.

> -----Original Message-----
> From: owner-postfix-userspostfix.org [mailto:owner-postfix-
> userspostfix.org] On Behalf Of Paul Hutchings
> Sent: Wednesday, June 02, 2004 3:47 AM
> To: postfix-userspostfix.org
> Subject: RE: Inbound connections through Cisco PIX failing?
>
> Usually when PIX issues occur disabling smtp fixup seems to be the
> suggestion.
>
> regards,
> Paul
> --
> Paul Hutchings
> Network Administrator, MIRA Ltd.
> Tel: 44 (0)24 7635 5378, Fax: 44 (0)24 7635 8378
> mailto:paul.hutchingsmira.co.uk
>
> > -----Original Message-----
> > From: Erik Forsberg [mailto:forsberg+pfucendio.se]
> > Sent: 02 June 2004 08:42
> > To: postfix-userspostfix.org
> > Subject: Inbound connections through Cisco PIX failing?
> >
> >
> > Hi!
> >
> > I have a problem at a customer site, with a newly installed Postfix
> > version 2.1.1. The Postfix machine is behind a Cisco PIX firewall,
as
> > seen by trying to connect from the outside:
> >
> > 220 SMTP/cmap
> >
ready_________________________________________________________________
> >
> > Now, the problem is that mail from hotmail, and quite a few other
> > domains, doesn't arrive as expected. The only thing seen in the
> > Postfix logs are entries like these:
> >
> > May 28 04:16:27 eskil postfix/smtpd[14289]: connect from
> > bay17-f42.bay17.hotmail.com[64.4.43.92]
> > May 28 04:16:28 eskil postfix/smtpd[14289]: disconnect from
> > bay17-f42.bay17.hotmail.com[64.4.43.92]
> >
> > There is nothing inbetween the two lines above for that particular
> > smtpd process.
> >
> > I suspect this is a problem with the Cisco PIX. Unfortunately, I
don't
> > know the exact version of the PIX, nor have I been able to put
> > hotmail.com in the debug_peer_list to get more info out of Postfix,
> > and currently the customer has gone back to his old Sendmail
> > configuration (which works flawlessly for all inbound connections).
> >
> > Any ideas on this? I know there was problems with Postfix _sending_
> > mail to other servers behind a Cisco PIX, a few years ago, but I
> > haven't heard of the other direction. On the other hand, I've been
off
> > this list a while.. I couldn't find any relevant Google hits or FAQ
> > entries.
> >
> > Regards,
> > \EF
> > --
> > Erik Forsberg Telephone: +46-13-21 46 00
> > Cendio AB Web: http://www.cendio.com
> >
> >


 
ldap lookup question..

From: Andrzej Kwiatkowski (kwiatektpi.pl)
Date: Wed Jun 02 2004 - 06:51:02 CDT


I'm trying to reduce ldap serches in my postix-ldap mta system.

Now when i'm sending mail from adres1domain.com to adres2domain.com
in ma LDAP logs i have:

filter="(&(avflag=1)(|(objectclass=mailrecipient)(objectclass=mailgroup))(|(mail=ciociainteria.pl)(mailalternateaddress=ciociainteria.pl)))"
filter="(&(|(objectclass=mailrecipient)(objectclass=mailgroup))(|(mail=ciociainteria.pl)(mailalternateaddress=ciociainteria.pl)))"

filter="(&(avflag=1)(|(objectclass=mailrecipient)(objectclass=mailgroup))(|(mail=kwiatektpi.pl)(mailalternateaddress=kwiatektpi.pl)))"
filter="(&(|(objectclass=mailrecipient)(objectclass=mailgroup))(|(mail=kwiatektpi.pl)(mailalternateaddress=kwiatektpi.pl)))"

filter="(&(avflag=1)(|(objectclass=mailrecipient)(objectclass=mailgroup))(|(mail=kwiatektpi.pl)(mailalternateaddress=kwiatektpi.pl)))"
filter="(&(|(objectclass=mailrecipient)(objectclass=mailgroup))(|(mail=kwiatektpi.pl)(mailalternateaddress=kwiatektpi.pl)))"

I'm using only ldap transport lookup.
My questions are:

1. How to reduce mail sender ldap lookup (two first searches are
unneeded).
2. How to reduce the next searches to be done only once ?

Thanks in advance
AK


 
Re: Adding Message-ID is wrong

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Wed Jun 02 2004 - 06:55:01 CDT


On Wed, Jun 02, 2004 at 07:35:03AM -0400, Victor.DuchovniMorganStanley.com wrote:

> The addition of mydomain to header recipients is done only for messages
> that are already not RFC conformant.

I do not say otherwise. I just wish I could recognize this more easely.
That, or (prefered) use it to block.

This may not be a real problem for you but that does not mean I am
talking about something trivial or unimportant. I wouldn't spend
this much time if it doesn't matter much.

> Furthermore, if you configure a split relay (input handled by different
> Postfix instance than output) "myorigin = address.invalid" nicely solves
> the problem of how to qualify broken mail.

Tried several configurations. Eventually an issue comes up, generating
double bounces because address.invalid is invalid. Sure, this too can
be worked around. So I need a workaround for a workaround.

In the end it doesn't matter much since the exchange server will most
likely allow replies to useraddress.invalid, ending up in bitheaven
(blackhole) or as a double bounce. I need to tackle the problem at
input, not at output.

Add this to the not quite easy to maintain multiple instance setup
and _I_ have a _real_ problem that is not easely fixed.

> The result is that Postfix emits RFC conformant output even with
> non-conformant input. Lets move on to another topic please.

Rubbish in is rubbish out. It's just different rubbish.

I will discontinue with this thread. I understand that my priorities
are different from the general public's. Time to hack/workaround in the
code I guess.

It will take some time, much trial and error (especially error) but I
will get it right eventually.

No, this will not be a clean patch and no, I will thus not share.

Thanks for your answer,
Alex
--
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If
you reply to me off-list, you'd better tell me you're doing so. If
you don't, and if I reply to the list, that's your problem, not mine.


 
Re: NFS Maildirs

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 07:24:50 CDT


>> Yup.. We have 9 active (and 9 passive mailhosts) with 150gig of space
>> on each LUN/mailstore.. The entire userbase is spread out evenlyover
>> all the mailhosts which makes things a pure dream to admin/maintain..
>>
>> Everything ofcourse is complete transparent to the entire userbase so
>> no user ever has to know on which mailhost they reside on..
>
> However, in this case, you waste 2 times the computing power... I don't
> know for how many users we're talking about,

Over 350 000 users.

> and what do you consider a
> mailhost, but for 50,000 users we have 2 mail servers, 2 pop readers and 1
> imap reader, and they are working in load balancing mode, rather than
> standby mode.

The only thing that is in standy-mode is the mailhosts.. The pop3/imap
proxies, aswell as spam layer, aswell as incoming MX layer all user
load balancing..

> Your solution might be faster (performance wise), but is

Not just faster, its more stable.

> more expensive in all other aspects

Not quite, hardware is becoming cheaper and cheaper..

> and of course harder to manage than one single spool.

Where do you get that idea from? Think about what happens
if that single mail spool filesystem becomes corrupted..
Spreading your spool across multiple machines ensures
minimal impact when things go wrong.. Also, having your
mailhosts in an active/passive configuration allows
you to perform drastic changes and maintence without
requiring hours of downtime..

Granted, no clustering is perfect, but the point is to
ensure everything is as stable as possible.. If hardware
is *really* that much of an issue in terms of cost, you
can have 6 active nodes and 1 passive which will automatically
take over if any of the active nodes fail.

Cami


 
Re: hotmail.com woes

From: Maarten de Vries (mdvunsavoury.net)
Date: Wed Jun 02 2004 - 08:04:38 CDT


On Friday 14 May 2004 14:23, Maarten de Vries wrote:

> has anyone on this list actually succeeded yet in delivering large
> quantities of mail to the hotmail.com domain within a reasonable
> timeframe?

Well, it could of course be that the boys and girls in Redmond are having
a good week, but it would appear that I've found a way to do exactly
that.

The hack is an ugly one, but after having implemented it, thousands of
deffered messages for the hotmail.com domain every day have been reduced
to just a couple. Instead of ~12 hour delays, all messages are delivered
within a matter of minutes. So I think it's justified...

Here's what I did (no rocket science, really):

main.cf:
 hotmail_destination_recipient_limit = 128
 hotmail_destination_concurrency_limit = 384

master.cf:
 hotmail unix - - n - 400 smtp
        -o smtp_connect_timeout=6s
        -o smtp_helo_timeout=3s
        -o smtp_always_send_ehlo=no

And of course a corresponding entry in the transport table:
 hotmail.com hotmail:

So, in short: allowing postfix to open a huge amount of connections to the
hotmail.com MX'es apparently does the trick...

--
Maarten
http://unsavoury.net/


 
entry in master.cf for high volume mail

From: Mipam (mipamibb.net)
Date: Wed Jun 02 2004 - 08:21:46 CDT


Hi,

i wish to make an additional entry in master.cf which needs to send lots
of mails to
mailrelays. suppose i have lots of messages to send for domain.com

so i add an entry to master.cf like this:

domain unix - - n - 130 smtp
        -o domain_connect_timeout=3s
        -o domain_helo_timeout=6s
        -o domain_destination_recipient_limit=128
        -o domain_destination_concurrency_limit=50

so domain_destination_recipient_limit=128 means in one connection 128
messages can be send in one connection to the mta of domain.com?

domain_destination_concurrency_limit=50 means 50 simultaneous connections
can be made to a mta of domain.com? Suppose domain.com got 4 mx records.
So to each mx (mta) a maximum of 50 simultaneous connections can be made
and a complete maximum of 130 simultaneous connection total to domain.com?

Is anything wrong about these assumtions, is the entry in master.cf
correct or is something wrong with it? any other suggestions
Bye,

Mipam.


 
Re: hotmail.com woes

Victor.DuchovniMorganStanley.com
Date: Wed Jun 02 2004 - 08:44:46 CDT


On Wed, 2 Jun 2004, Maarten de Vries wrote:

> main.cf:
> hotmail_destination_recipient_limit = 128
> hotmail_destination_concurrency_limit = 384
>
> master.cf:
> hotmail unix - - n - 400 smtp
> -o smtp_connect_timeout=6s
> -o smtp_helo_timeout=3s
> -o smtp_always_send_ehlo=no
>
> So, in short: allowing postfix to open a huge amount of connections to the
> hotmail.com MX'es apparently does the trick...
>

Are you sure actually need this much concurrency, or are you just using
the correspondingly larger "concurrency window" to avoid throttling the
destination. Why were messages deferred before? Are fewer messages
deferred now?

My conjecture is that hotmail is likely indeed having a better week.

Increased concurrency can reduce active queue congestion, but it should
not have any impact on the rate of message deferral unless the destination
is being throttled by the queue manager. You can configure a low
concurrency transport with a large concurrency "window" that avoids
throttling due to a burst of consecutive errors. See QSHAPE_README
(Postfix 2.1) for details.

I am seeing no mail deferred to hotmail today:

...
09:20 smtp sent:12 deferred:0 bounced:1
09:21 smtp sent:6 deferred:0 bounced:0
09:22 smtp sent:13 deferred:0 bounced:0
09:23 smtp sent:6 deferred:0 bounced:0
09:24 smtp sent:5 deferred:0 bounced:0
09:25 smtp sent:6 deferred:0 bounced:0
09:26 smtp sent:9 deferred:0 bounced:0
09:28 smtp sent:2 deferred:0 bounced:0
09:29 smtp sent:5 deferred:0 bounced:0
09:30 smtp sent:4 deferred:0 bounced:0
09:31 smtp sent:4 deferred:0 bounced:0
09:32 smtp sent:4 deferred:0 bounced:0
09:33 smtp sent:4 deferred:0 bounced:0
09:34 smtp sent:5 deferred:0 bounced:0
09:35 smtp sent:12 deferred:0 bounced:0
09:36 smtp sent:10 deferred:0 bounced:1
09:37 smtp sent:18 deferred:0 bounced:2
09:38 smtp sent:6 deferred:0 bounced:0
09:39 smtp sent:3 deferred:0 bounced:0
09:40 smtp sent:3 deferred:0 bounced:0
...

The code that generates this output is:

-------------- deliverstats.pl ------------
#! /usr/bin/env perl

my $domain = shift(ARGV) or die "Usage: $0 destination-re [logfile ...]\n";

my $pat = q{^... .. (..:..):.. \S+ postfix/(\w+)\S+:}
        . q{(?: \[[^]]+\])?} # SunOS [ID ...]
        . q{ \w+: to=<\S+}. qq{$domain}. q{>,}
        . q{ .*, status=(sent|deferred|bounced)};
my %c = ();
my $t;

while (<>) {
        next unless /$pat/io;

        if ($1 ne $t) {
                while (my ($k, $v) = each %c) {
                        printf "%s %8s %s\n", $t, $k,
                            join (" ", map { sprintf "%8s:%-4d", $_, $v->{$_} }
                                qw(sent deferred bounced));
                }
                $t = $1;
                %c = ();
        }
        ++$c{$2}{$3};
}

# Final record...
while (my ($k, $v) = each %c) {
        printf "%s %8s %s\n", $t, $k,
            join (" ", map { sprintf "%8s:%-4d", $_, $v->{$_} }
                qw(sent deferred bounced));
}
-------------- deliverstats.pl ------------

$ count.pl 'hotmail\.com' /var/log/mail

--
        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:majordomopostfix.org?body=unsubscribe%20postfix-users>


 
Re: entry in master.cf for high volume mail

Victor.DuchovniMorganStanley.com
Date: Wed Jun 02 2004 - 08:46:50 CDT


On Wed, 2 Jun 2004, Mipam wrote:

> domain unix - - n - 130 smtp
> -o domain_connect_timeout=3s

No, use "smtp_connect_timeout".

> -o domain_helo_timeout=6s

No, use "smtp_helo_timeout".

> -o domain_destination_recipient_limit=128
> -o domain_destination_concurrency_limit=50
>

These are used by the queue manager and must go in main.cf.

--
        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:majordomopostfix.org?body=unsubscribe%20postfix-users>


 
Re: entry in master.cf for high volume mail

From: Mipam (mipamibb.net)
Date: Wed Jun 02 2004 - 08:54:00 CDT


On Wed, 2 Jun 2004 Victor.DuchovniMorganStanley.com wrote:

> On Wed, 2 Jun 2004, Mipam wrote:
>
> > domain unix - - n - 130 smtp
> > -o domain_connect_timeout=3s
>
> No, use "smtp_connect_timeout".
>
> > -o domain_helo_timeout=6s
>
> No, use "smtp_helo_timeout".
>
> > -o domain_destination_recipient_limit=128
> > -o domain_destination_concurrency_limit=50
> >
>
> These are used by the queue manager and must go in main.cf.

So in master.cf

domain unix - - n - 130 smtp
        -o smtp_connect_timeout=3s
        -o smtp_helo_timeout=6s

and in main.cf

domain_destination_recipient_limit=128
domain_destination_concurrency_limit=50

Then postfix will automatically apply these settings for mails to
domain.com? Nice to learn so, i though these were set in master.cf, i was
wrong. Were the interpretations of what these limits did right or not?
Would you rather use other values, any other hints?
Bye,

Mipam.


 
Re: email server concept: what's mail delivery agent

From: m (mtelerama.com)
Date: Wed Jun 02 2004 - 09:11:07 CDT


> From: Patrick Welche <prlw1newn.cam.ac.uk>
> Date: Wed, 2 Jun 2004 14:34:59 +0100
> To: Zhang Weiwu <zhangweiwurealss.com>
> Cc: info-cyruslists.andrew.cmu.edu
> Subject: Re: email server concept: what's mail delivery agent
>
> This is the way I understand - this might be wrong too!
>
> On Wed, Jun 02, 2004 at 07:49:53PM +0800, Zhang Weiwu wrote:
>> 2. Documents often mention 'delivery agent' and 'maildir', it seems
>> 'delivery agent' is not a standalone package, there is a delievery agent
>> in postfix package, and there is also one in cyrus package, I can choose
>> to use the delivery agent (postfix's or cyrus')
>
> I think postfix can deliver directly to cyrus, i.e., not need to pipe
> the message to cyrus' deliver (don't know for sure, I use exim).

actually, the entry in master.cf is a pipe to cyrus deliver.

>> 3. maildir is a way to store email, it is where postfix save incoming
>> mail, and it is the place cyrus-imapd get emails so that to put to
>> user's INBOX. But an email server can have no maildir completely, and
>> let cyrus's delivery agent by pass maildir and put mail directly to
>> user's INBOX.
>
> Yes, maildir is a filesystem storage format. If postfix is going to
> deliver all local mail to cyrus, then cyrus will be using its filesystem
> format, which I think is similar to maildir: one directory per folder,
> messages as numbered files.

Cyrus uses standard Maildir format and setup. I migrated from Courier to
Cyrus without any hassle. Just copied the directories into the Cyrus
locations.


 
Re: email server concept: what's mail delivery agent

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 09:12:03 CDT


* m <mtelerama.com>:

> Cyrus uses standard Maildir format and setup.

Nope.

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Why you can't find your system administrators:
they're busy rerouting their support telephone to the luser of the day


 
Re: email server concept: what's mail delivery agent

From: m (mtelerama.com)
Date: Wed Jun 02 2004 - 09:44:14 CDT


I stand corrected.

> From: Ralf Hildebrandt <Ralf.Hildebrandtcharite.de>
> Reply-To: postfix-userspostfix.org
> Date: Wed, 2 Jun 2004 16:12:03 +0200
> To: postfix-userscloud9.net
> Subject: Re: email server concept: what's mail delivery agent
>
> * m <mtelerama.com>:
>
>> Cyrus uses standard Maildir format and setup.
>
> Nope.
>
> --
> Ralf Hildebrandt Ralf.Hildebrandtcharite.de
> my current spamtrap spamtrapcharite.de
> http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
> Why you can't find your system administrators:
> they're busy rerouting their support telephone to the luser of the day
>
>
>


 
Reporting tools

From: Mueller, Jim (jmuellerced-concord.com)
Date: Wed Jun 02 2004 - 09:55:07 CDT


I've got postfix in a DMZ, and I'd like to know if there are any products
which run from a Windows OS which can pull reports from the postfix server
logs. I downloaded ActivePerl & AWStats, but I'm not sure it'll work in my
environment.

Any recommendations?

**********************************************************************
The information contained in this message is confidential and is intended
for the addressee(s) only. If you have received this message in error or
there are any problems please notify the originator immediately. The
unauthorized use, disclosure, copying or alteration of this message is
strictly forbidden. CED-Concord Management will not be liable for direct,
special, indirect or consequential damages arising from the alteration of the
contents of this message by a third party or as a result of any virus being
passed on.

This footnote confirms that this email message has been swept by
MIMEsweeper for Content Security threats, including computer viruses.

www.mimesweeper.com
**********************************************************************


 
Re: Reporting tools

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 09:59:34 CDT


* Mueller, Jim <jmuellerced-concord.com>:

> I've got postfix in a DMZ, and I'd like to know if there are any
> products which run from a Windows OS which can pull reports from the
> postfix server logs.

Why not generate the reports in the DMZ?
--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Vampireware /n/, a project, capable of sucking the lifeblood out of
anyone unfortunate enough to be assigned to it, which never actually
sees the light of day, but nonetheless refuses to die.


 
queues filling up

From: Mipam (mipamibb.net)
Date: Wed Jun 02 2004 - 10:18:45 CDT


Hi,

It doesnt happen rarely that the mailq is running full.
A server in the internal network is making lots of connections to postfix
and delivers mail to postfix. postfix doesnt seem able to send the load
away as soon as it comes in. The problem is that i dont know to what sites
many messages are being send. When i issue a postqueue -f, lots and lots
of outbound connections are being made and the mailq is being emtied very
quickly and the mailq is reducing in size quickly.

I have a seperate fs for /var/spool/postfix of 1 gig.
I am not sure if the active queue is not full when this is encountered,
but i guess so, since postqueue -f helps a lot. I could raise the
in_flow_delay value from 1 to 10, but this would limit the server which is
have lots of connections to postfix and sending mail?
Or should i raise the amount of cleanup processes? How to do this btw?
I thought that destination_concurrency_limit is only for the amount of
simultaneous connection made to a mta or does it have another use?
I am trying to find the cause of why the mailq is filling up.
I couldnt see whether is was the incomming queue which was becomming full,
or whether the active queue was filled up. But i guess it was the
incomming queue, because postqueue -f helped the mailq size decreased.
This brings me to a next point, the only command i know is mailq, but that
doesnt make a difference between the incomming and active queue, so i
cannot see which queue is filling up.

Maybe be raising the amount of cleanup processes helps?
Am i understand the function of initial_destination_concurrency
and default_destination_concurrency_limit wrongly?
Bye,

Mipam.


 
RE: Reporting tools

From: Mueller, Jim (jmuellerced-concord.com)
Date: Wed Jun 02 2004 - 10:41:32 CDT


I guess it doesn't matter where they're generated so long as I can
review/manage the reports from a machine in our internal network...

-----Original Message-----
From: Ralf Hildebrandt [mailto:Ralf.Hildebrandtcharite.de]
Sent: Wednesday, June 02, 2004 11:00 AM
To: postfix-userspostfix.org
Subject: Re: Reporting tools

* Mueller, Jim <jmuellerced-concord.com>:

> I've got postfix in a DMZ, and I'd like to know if there are any
> products which run from a Windows OS which can pull reports from the
> postfix server logs.

Why not generate the reports in the DMZ?
--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Vampireware /n/, a project, capable of sucking the lifeblood out of
anyone unfortunate enough to be assigned to it, which never actually
sees the light of day, but nonetheless refuses to die.

**********************************************************************
The information contained in this message is confidential and is intended
for the addressee(s) only. If you have received this message in error or
there are any problems please notify the originator immediately. The
unauthorized use, disclosure, copying or alteration of this message is
strictly forbidden. CED-Concord Management will not be liable for direct,
special, indirect or consequential damages arising from the alteration of the
contents of this message by a third party or as a result of any virus being
passed on.

This footnote confirms that this email message has been swept by
MIMEsweeper for Content Security threats, including computer viruses.

www.mimesweeper.com
**********************************************************************


 
Receiving email using aliases and not real ID's

From: Steve (f5c0krans.org)
Date: Wed Jun 02 2004 - 10:48:22 CDT


I couldn't find an answer for this elsewhere.

Is it possible to only receive email using aliases rather than real
ID's? The real user ID would be blocked from the original recipient
headers but not after the alias expansion.

I'm using Postfix 2.1.1. Thanks,

Steve


 
RE: Adding Message-ID is wrong

From: Covington, Chris (ccovingtonplusone.com)
Date: Wed Jun 02 2004 - 10:56:47 CDT


Oh no, what's the world coming to these days? Postfix is adding
Message-ID headers and appending mydomain!? Everybody rm -rf
/etc/postfix or we're all going to hell in a handbasket!

Chris


 
Re: queues filling up

From: Serega Romanovsky (romanovskyyandex.ru)
Date: Wed Jun 02 2004 - 11:01:52 CDT


Hello Mipam,

M> away as soon as it comes in. The problem is that i dont know to what sites
M> many messages are being send. When i issue a postqueue -f, lots and lots

JFYI: you can use "mailq | postfix-mailq-analyzer.pl -d" command to
study out the queue.
http://serega.spb.ru/postfix-mailq-analyzer.pl

--
Best regards,
 Serega


 
Re: Adding Message-ID is wrong

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Wed Jun 02 2004 - 11:11:07 CDT


On Wed, Jun 02, 2004 at 12:08:33PM -0400, Covington, Chris wrote:
> >Please keep your sarcasm off the list. It serves no useful purpose.
>
> I disagree.

Please keep your sarcasm to yourself in that case.


 
PostNuke and POstfix

From: Darkman (darkmanclicqx.com)
Date: Wed Jun 02 2004 - 11:14:10 CDT


I am using postnuke 726, and postfix 2.1. Mandrake 10 community. I have a website wiht about 4000 users and when I try to send email to all users via the admin panel, it sends out so many and then stops, I can't tell if it stops because its just too many emails to handle( I don't think so) or if it encounters a few bad email addys and then just quits, I tail -f the mail log to watch it and it happens everytime. I have adjusted the main.cf file several times and to no avail, this is my config:
# These are changed by postfix install script
readme_directory = /usr/share/doc/postfix-2.1.0/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.0/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
queue_directory = /var/spool/postfix
mail_owner = postfix

# User configurable parameters
myhostname = don.vampiredon.net
mydomain = vampiredon.net
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
local_recipient_maps = unix:passwd.byname $alias_maps
#mynetworks_style = host
mynetworks = 66.122.250.133, 66.122.250.130, 127.0.0.0/8, 66.63.147.227, 66.122.250.131, 68.111.228.59
relay_domains = $mydestination
smtp_recipient_restrictions = permit_mynetworks check_relay_domains reject_unknown_client
masquerade_domains = vampiredon.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
delay_warning_time = 4h
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
smtpd_banner = $myhostname
best_mx_transport = mail.vampiredon.net
fallback_relay = mail.vampiredon.net
default_destination_recipient_limit = 4000
#relayhost = mail.vampiredon.net
unknown_local_recipient_reject_code = 450
default_destination_concurrency_limit = 40
smtp-filter_destination_concurrency_limit = 40
initial_destination_concurrency =20
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
I have also configed it to forward to another host if it has a problem emailing to one or to problem email addies, thanks for the help in advance.
Larry


 
Re: Postfix, TLS and SASL redux...

From: Ed Vazquez (ed.vazquezdhha.org)
Date: Wed Jun 02 2004 - 11:43:14 CDT


--On Friday, May 28, 2004 15:20 +0200 Andreas Winkelmann
<mlawinkelmann.de> wrote:
> Show your sasl-configuration (smtpd.conf).
>
> Switch on Verbose-Logging in master.cf for smtpd. And try it
> again, show the Lines between "EHLO" and "MAIL FROM". Be
> carefull not to post passwords, best to create a
> test-account.
>
> --
> Andreas
>
>

# ps auxwww | grep sasl
root 20173 0.0 0.1 100 748 ?? Is 10:39AM
0:00.01 /usr/local/sbin/saslauthd -a getpwent -m
/var/spool/postfix/var/sasl2/
root 6739 0.0 0.0 100 96 ?? I 10:39AM
0:00.00 /usr/local/sbin/saslauthd -a getpwent -m
/var/spool/postfix/var/sasl2/
root 6319 0.0 0.0 100 96 ?? I 10:39AM
0:00.00 /usr/local/sbin/saslauthd -a getpwent -m
/var/spool/postfix/var/sasl2/
root 11438 0.0 0.0 100 96 ?? I 10:39AM
0:00.00 /usr/local/sbin/saslauthd -a getpwent -m
/var/spool/postfix/var/sasl2/
root 26871 0.0 0.0 100 96 ?? I 10:39AM
0:00.00 /usr/local/sbin/saslauthd -a getpwent -m
/var/spool/postfix/var/sasl2/

# cat /usr/local/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mechlist: PLAIN LOGIN
saslauthd_path: /var/sasl2

[10:22:38] * message: Connecting to SMTP server:
0.mx.null-route.org ...
[10:22:38] SMTP< 220 0.mx.null-route.org ESMTP Server v0.1.1
[10:22:38] ESMTP> EHLO spyglass.dhha.org
[10:22:39] ESMTP< 250-alecto.null-route.org
[10:22:39] ESMTP< 250-PIPELINING
[10:22:39] ESMTP< 250-SIZE 80000000
[10:22:39] ESMTP< 250-VRFY
[10:22:39] ESMTP< 250-ETRN
[10:22:39] ESMTP< 250-STARTTLS
[10:22:39] ESMTP< 250 8BITMIME
[10:22:39] ESMTP> STARTTLS
[10:22:39] ESMTP< 220 Ready to start TLS
[10:22:40] ESMTP> EHLO spyglass.dhha.org
[10:22:41] ESMTP< 250-alecto.null-route.org
[10:22:41] ESMTP< 250-PIPELINING
[10:22:41] ESMTP< 250-SIZE 80000000
[10:22:41] ESMTP< 250-VRFY
[10:22:41] ESMTP< 250-ETRN
[10:22:41] ESMTP< 250-AUTH PLAIN OTP LOGIN GSSAPI DIGEST-MD5
CRAM-MD5
[10:22:41] ESMTP< 250-AUTH=PLAIN OTP LOGIN GSSAPI DIGEST-MD5
CRAM-MD5
[10:22:41] ESMTP< 250 8BITMIME
[10:22:41] ESMTP> AUTH LOGIN
[10:22:41] ESMTP< 334 redacted
[10:22:41] ESMTP> [USERID]
[10:22:42] ESMTP< 334 redacted
[10:22:42] ESMTP> [PASSWORD]
[10:22:42] ESMTP< 535 Error: authentication failed
[10:22:42] ** warning: error occurred on authentication
[10:22:42] ** warning: Authentication failed.
Connection closed by foreign host.

master.cf:
smtp inet n - n - 8
smtpd -v

tail /var/log/maillog:

Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
mynetworks ~? debug_peer_list
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
mynetworks ~? fast_flush_domains
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
mynetworks ~? mynetworks
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
relay_domains ~? debug_peer_list
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
relay_domains ~? fast_flush_domains
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
relay_domains ~? mynetworks
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
relay_domains ~? permit_mx_backup_networks
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
relay_domains ~? qmqpd_authorized_clients
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
relay_domains ~? relay_domains
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
permit_mx_backup_networks ~? debug_peer_list
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
permit_mx_backup_networks ~? fast_flush_domains
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
permit_mx_backup_networks ~? mynetworks
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
permit_mx_backup_networks ~? permit_mx_backup_networks
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
unix:passwd.byname
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
hash:/etc/mail/aliases
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
hash:/etc/postfix/vmailbox
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
smtpd_access_maps ~? debug_peer_list
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
smtpd_access_maps ~? fast_flush_domains
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
smtpd_access_maps ~? mynetworks
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
smtpd_access_maps ~? permit_mx_backup_networks
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
smtpd_access_maps ~? qmqpd_authorized_clients
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
smtpd_access_maps ~? relay_domains
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
smtpd_access_maps ~? smtpd_access_maps
Jun 2 10:22:08 alecto postfix/smtpd[32072]: attr_clnt_create:
transport=unix endpoint=private/policy
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
hash:/etc/postfix/maps/verify_sender
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
hash:/etc/postfix/maps/verify_domain
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
hash:/etc/postfix/maps/bad_domains
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
pcre:/etc/postfix/maps/text_domain_client_mismatch
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
pcre:/etc/postfix/maps/text_domain_helo_mismatch
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
pcre:/etc/postfix/maps/text_domain_sender_mismatch
Jun 2 10:22:08 alecto postfix/smtpd[32072]:
smtpd_sasl_initialize: SASL config file is smtpd.conf
Jun 2 10:22:08 alecto postfix/smtpd[32072]: dict_open:
sdbm:/etc/postfix/smtpd_scache
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
fast_flush_domains ~? debug_peer_list
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_string:
fast_flush_domains ~? fast_flush_domains
Jun 2 10:22:08 alecto postfix/smtpd[32072]: watchdog_create:
0x3c03c088 18000
Jun 2 10:22:08 alecto postfix/smtpd[32072]: watchdog_stop:
0x3c03c088
Jun 2 10:22:08 alecto postfix/smtpd[32072]: watchdog_start:
0x3c03c088
Jun 2 10:22:08 alecto postfix/smtpd[32072]: connection
established
Jun 2 10:22:08 alecto postfix/smtpd[32072]: master_notify:
status 0
Jun 2 10:22:08 alecto postfix/smtpd[32072]: name_mask: 2bounce
Jun 2 10:22:08 alecto postfix/smtpd[32072]: name_mask: policy
Jun 2 10:22:08 alecto postfix/smtpd[32072]: name_mask: protocol
Jun 2 10:22:08 alecto postfix/smtpd[32072]: name_mask: resource
Jun 2 10:22:08 alecto postfix/smtpd[32072]: name_mask: software
Jun 2 10:22:08 alecto postfix/smtpd[32072]: name_mask:
noanonymous
Jun 2 10:22:08 alecto postfix/smtpd[32072]: connect from
spyglass.dhha.org[205.170.235.246]
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_list_match:
spyglass.dhha.org: no match
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_list_match:
205.170.235.246: no match
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_list_match:
spyglass.dhha.org: no match
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_list_match:
205.170.235.246: no match
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 220 0.mx.null-route.org
ESMTP Server v0.1.1
Jun 2 10:22:08 alecto postfix/smtpd[32072]: watchdog_pat:
0x3c03c088
Jun 2 10:22:08 alecto postfix/smtpd[32072]: <
spyglass.dhha.org[205.170.235.246]: EHLO spyglass.dhha.org
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-alecto.null-route.org
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-PIPELINING
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-SIZE 80000000
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-VRFY
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-ETRN
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-STARTTLS
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_list_match:
spyglass.dhha.org: no match
Jun 2 10:22:08 alecto postfix/smtpd[32072]: match_list_match:
205.170.235.246: no match
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250 8BITMIME
Jun 2 10:22:08 alecto postfix/smtpd[32072]: watchdog_pat:
0x3c03c088
Jun 2 10:22:08 alecto postfix/smtpd[32072]: <
spyglass.dhha.org[205.170.235.246]: STARTTLS
Jun 2 10:22:08 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 220 Ready to start TLS
Jun 2 10:22:08 alecto postfix/smtpd[32072]: setting up TLS
connection from spyglass.dhha.org[205.170.235.246]
Jun 2 10:22:09 alecto postfix/smtpd[32072]: TLS connection
established from spyglass.dhha.org[205.170.235.246]: TLSv1 with
cipher DHE-RSA-AES256-SHA (256/256 bits)
Jun 2 10:22:09 alecto postfix/smtpd[32072]: name_mask:
noanonymous
Jun 2 10:22:09 alecto postfix/smtpd[32072]: watchdog_pat:
0x3c03c088
Jun 2 10:22:10 alecto postfix/smtpd[32072]: <
spyglass.dhha.org[205.170.235.246]: EHLO spyglass.dhha.org
Jun 2 10:22:10 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-alecto.null-route.org
Jun 2 10:22:10 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-PIPELINING
Jun 2 10:22:10 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-SIZE 80000000
Jun 2 10:22:10 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-VRFY
Jun 2 10:22:10 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-ETRN
Jun 2 10:22:10 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-AUTH PLAIN OTP LOGIN
GSSAPI DIGEST-MD5 CRAM-MD5
Jun 2 10:22:10 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250-AUTH=PLAIN OTP LOGIN
GSSAPI DIGEST-MD5 CRAM-MD5
Jun 2 10:22:10 alecto postfix/smtpd[32072]: match_list_match:
spyglass.dhha.org: no match
Jun 2 10:22:10 alecto postfix/smtpd[32072]: match_list_match:
205.170.235.246: no match
Jun 2 10:22:10 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 250 8BITMIME
Jun 2 10:22:10 alecto postfix/smtpd[32072]: watchdog_pat:
0x3c03c088
Jun 2 10:22:11 alecto postfix/smtpd[32072]: <
spyglass.dhha.org[205.170.235.246]: AUTH LOGIN
Jun 2 10:22:11 alecto postfix/smtpd[32072]:
smtpd_sasl_authenticate: sasl_method LOGIN
Jun 2 10:22:11 alecto postfix/smtpd[32072]:
smtpd_sasl_authenticate: uncoded challenge: Username:
Jun 2 10:22:11 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 334 redacted
Jun 2 10:22:11 alecto postfix/smtpd[32072]: <
spyglass.dhha.org[205.170.235.246]: redacted
Jun 2 10:22:11 alecto postfix/smtpd[32072]:
smtpd_sasl_authenticate: decoded response: bofh
Jun 2 10:22:11 alecto postfix/smtpd[32072]:
smtpd_sasl_authenticate: uncoded challenge: Password:
Jun 2 10:22:11 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 334 redacted
Jun 2 10:22:11 alecto postfix/smtpd[32072]: <
spyglass.dhha.org[205.170.235.246]: redacted
Jun 2 10:22:11 alecto postfix/smtpd[32072]:
smtpd_sasl_authenticate: decoded response: redacted
Jun 2 10:22:11 alecto postfix/smtpd[32072]: warning: SASL
authentication failure: cannot connect to saslauthd server:
Socket operation on non-socket
Jun 2 10:22:11 alecto postfix/smtpd[32072]: warning: SASL
authentication failure: cannot connect to saslauthd server:
Socket operation on non-socket
Jun 2 10:22:11 alecto postfix/smtpd[32072]: warning:
spyglass.dhha.org[205.170.235.246]: SASL LOGIN authentication
failed
Jun 2 10:22:11 alecto postfix/smtpd[32072]: warning:
spyglass.dhha.org[205.170.235.246]: SASL LOGIN authentication
failed
Jun 2 10:22:11 alecto postfix/smtpd[32072]: >
spyglass.dhha.org[205.170.235.246]: 535 Error: authentication
failed
Jun 2 10:22:11 alecto postfix/smtpd[32072]: watchdog_pat:
0x3c03c088
Jun 2 10:22:14 alecto postfix/smtpd[32072]: warning: Read
failed in network_biopair_interop with errno=0: num_read=0,
want_read=5
Jun 2 10:22:14 alecto postfix/smtpd[32072]: warning: Read
failed in network_biopair_interop with errno=0: num_read=0,
want_read=5
Jun 2 10:22:14 alecto postfix/smtpd[32072]: smtp_get: EOF
Jun 2 10:22:14 alecto postfix/smtpd[32072]: lost connection
after AUTH from spyglass.dhha.org[205.170.235.246]
Jun 2 10:22:14 alecto postfix/smtpd[32072]: disconnect from
spyglass.dhha.org[205.170.235.246]

OK, I can see that something is not quite right. But doggone
if I can tell where. The saslauthd process is started with:

/usr/local/sbin/saslauthd -a getpwent -m
/var/spool/postfix/var/sasl2/

and the file itself shows as:

# file /var/spool/postfix/var/sasl2/mux
/var/spool/postfix/var/sasl2/mux: socket

--
Ed Vazquez

No Sane man will dance.
- Cicero


 
adding headers when RBL found

From: Piotr KUCHARSKI (chopinsgh.waw.pl)
Date: Wed Jun 02 2004 - 11:45:38 CDT


Hi,

I saw PREPEND in access(5), but that seems to be usable in static
lists; is there any way to have some header inserted in mail instead
of rejecting it when some RBL is hit? Something along the lines of
warn_if_reject, say tag_if_reject?

p.

--
Beware of he who would deny you access to information, for in his
heart he dreams himself your master. -- Commissioner Pravin Lal
http://nerdquiz.sgh.waw.pl/ -- polska wersja quizu dla nerdów ;)


 
Re: Adding Message-ID is wrong

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Wed Jun 02 2004 - 11:45:45 CDT


At 07:55 PM 6/1/04, Cami wrote:
>>>A large amount of my userbase is very confused by the From:/To: fields
>>>that Postfix inserts.. (especially when they try to reply to the mail..)
>>Thank you. You understand the problem.
>>Do you have numbers on how many of such mail is malformed but otherwise
>>valid email?
>
>110 million mail messages are spam (+30 million legitimate), of those
>almost 5 million have To/From headers that Postfix replaces.. (monthly
>statistics)

I fix this with a header_checks entry that looks like:

# remove From: headers that don't contain an ""
/^From:[^]+$/ IGNORE

If you remove the From header with IGNORE, postfix/cleanup will insert a
new one using the envelope address after the header checks are done.
As I use reject_non_fqdn_sender this is usually the right thing to do here.
These are most often spam, but I don't REJECT these as some legit mailing
lists have arrived with broken From: headers and the main objective here is
to accept and deliver legit mail. Also some legit bounces arrive with just
"From: postmaster".

I suppose one could do the same with To: headers; cleanup will insert a
"To: undisclosed recipients: ;" header if it's missing, but this isn't such
a big problem here.

The regexp could probably be improved to test for a wider variety of
invalid headers, but the simple test above fixes most of our problems.

YYMV and all that...

--
Noel Jones

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


 
Newbie Header Question?

From: Evan Erwin (eerwinornlfcu.com)
Date: Wed Jun 02 2004 - 12:04:41 CDT


Is there a way to have amavis-new to not erase the original email
headers? It can append its own, that's fine...

Thanks!

Evan


 
from domain to domain relay

From: Bud Spencer (domingo2netcomp.com.br)
Date: Wed Jun 02 2004 - 12:49:31 CDT


Hi nuts!

 

            My postfix domain is: domain.co

 

            When i send email from user1domain.co to user2domin.co my
postfix relay that message.

 

            There is any way to use sasl to prevent this...

 

            I what to AUTHENTICATE all conections... if jowdomain.co send
emails to itself i what to authenticate!!!

 

            Is is possible?

 

 

10x a lot!!!

Bud Spencer


 
Re: from domain to domain relay

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Jun 02 2004 - 12:52:24 CDT


On Wednesday, June 02, 2004 at 19:49 CEST,
     Bud Spencer <domingo2netcomp.com.br> wrote:

[...]

> I what to AUTHENTICATE all conections... if jowdomain.co
> send emails to itself i what to authenticate!!!

smtpd_recipient_restrictions = permit_sasl_authenticated, reject

--
Magnus Bäck
magnusdsek.lth.se


 
Postfix SASL + TLS Complie issue

From: Eric Toll (ericgodzilla.vipstructures.com)
Date: Wed Jun 02 2004 - 12:53:18 CDT


I am using Postfix 2.1.0 which has it's own respective TLS patch for use
with that version. This is running on FreeBSD 5.2.1
         
        SASL2 is installed and runs fine, also the TLS patch to the
        2.1.0 code was successful.
        
        I ran the following command for postfix to tell it to use what I
        have added:
         
        make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/include/sasl
        -DHAS_SSL -I/
        usr/local/include/openssl" AUXLIBS="-L/usr/local/lib
        -R/usr/local/lib -lsasl2 -lssl -lcrypto"
        
        <Which started OK, then started complaining>
         
         
        "Makefile.in", line 96: warning: duplicate script for target
        "tlsmgr" ignored
        "Makefile.in", line 99: warning: duplicate script for target
        "Makefile" ignored
        "Makefile.in", line 106: warning: duplicate script for target
        "../../libexec/tlsmgr" ignored
        "Makefile.in", line 109: warning: duplicate script for target
        "printfck" ignored
        "Makefile.in", line 110: warning: duplicate script for target
        "printfck" ignored
        "Makefile.in", line 111: warning: duplicate script for target
        <BIG SNIP>
        "Makefile.in", line 359: warning: duplicate script for target
        "depend" ignored
        (set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs; cat
        Makefile.in) >Makefile
        rm -f Makefile; (set -e; /bin/sh makedefs && cat Makefile.in)
>Makefile
        (echo "# Do not edit -- this file documents how Postfix was
        built for your machine."; /bin/sh makedefs) >makedefs.tmp
        set +e; if cmp makedefs.tmp conf/makedefs.out; then rm
        makedefs.tmp; else mv makedefs.tmp conf/makedefs.out; fi
>/dev/null 2>/dev/n
        ull
        
        <I then tried to do a make install, and it started OK, then it
        started complaining about:>
         
         
        dict_sdbm.c:468: error: conflicting types for `DICT_SDBM'
        dict_sdbm.c:60: error: previous declaration of `DICT_SDBM'
        dict_sdbm.c:473: error: redefinition of `dict_sdbm_lookup'
        dict_sdbm.c:65: error: `dict_sdbm_lookup' previously defined
        here
        dict_sdbm.c:533: error: redefinition of `dict_sdbm_update'
        dict_sdbm.c:125: error: `dict_sdbm_update' previously defined
        here
        dict_sdbm.c:599: error: redefinition of `dict_sdbm_delete'
        dict_sdbm.c:191: error: `dict_sdbm_delete' previously defined
        here
        dict_sdbm.c:660: error: redefinition of `dict_sdbm_sequence'
        dict_sdbm.c:252: error: `dict_sdbm_sequence' previously defined
        here
         
        Stop in /usr/home/eric/postfix-patch/postfix-2.1.0/src/util.
        *** Error code 1
        
         
        Some pointers in the correct direction would be appreciated.
        
        Eric


 
Re: Adding Message-ID is wrong

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 12:56:08 CDT


* Noel Jones <njonesmegan.vbhcs.org>:

> I fix this with a header_checks entry that looks like:
>
> # remove From: headers that don't contain an ""
> /^From:[^]+$/ IGNORE

Excellent idea!

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Eight hours of work and all I managed to do was learn that the only
reason they call it "Windows" is because prolonged usage makes you
want to throw your computer through one...


 
Re: Reporting tools

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 12:56:46 CDT


* Mueller, Jim <jmuellerced-concord.com>:

> I guess it doesn't matter where they're generated so long as I can
> review/manage the reports from a machine in our internal network...

pflogsumm.pl /var/log/maillog | mailx -s Report jmuellerced-concord.com

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
C:\> WIN
Bad command or filename
C:\> LOSE
Loading Microsoft Windows ...


 
Re: Receiving email using aliases and not real ID's

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 12:57:17 CDT


* Steve <f5c0krans.org>:
> I couldn't find an answer for this elsewhere.
>
> Is it possible to only receive email using aliases rather than real
> ID's? The real user ID would be blocked from the original recipient
> headers but not after the alias expansion.

I don't understand the question. Give an example

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Backups? We doan *NEED* no steenking baX%^~,VbKx NO CARRIER


 
Stop local delivery

From: Matt Thoene (mattremedyx.com)
Date: Wed Jun 02 2004 - 12:57:38 CDT


Hello,

I know this is an easy one but I'm not having any luck. I have
multiple domains on postfix server A. I recently moved one of the
domains to postfix server B. I have several users who use a web based
mail client on server A. If they send mail from their client to any
user at the recently moved domain, the mail still gets delivered
locally and not sent to the new server B. I have a need to leave the
old accounts on server A for a while. What do I have to change to
force Postfix to ignore the local accounts?

--
Regards,
Matt


 
Re: Newbie Header Question?

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 12:57:51 CDT


* Evan Erwin <eerwinornlfcu.com>:

> Is there a way to have amavis-new to not erase the original email
> headers?

That's the default.

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Why you can't find your system administrators:
He was arrested cause the police thought he was a Drug dealer when they saw the three pagers on his belt..


 
Re: Receiving email using aliases and not real ID's

From: Steve (f5c0krans.org)
Date: Wed Jun 02 2004 - 13:11:08 CDT


On Wed, Jun 02, 2004 at 07:57:17PM +0200, Ralf Hildebrandt wrote:
> I don't understand the question. Give an example

Okay, a simple example would be having a unix user id "jim" and an
/etc/aliases entry "jim_alias" that points to jim. Incoming email from
the Internet would be blocked for jim, but would work for jim_alias.

Steve


 
Re: Receiving email using aliases and not real ID's

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 13:14:35 CDT


* Steve <f5c0krans.org>:
> On Wed, Jun 02, 2004 at 07:57:17PM +0200, Ralf Hildebrandt wrote:
> > I don't understand the question. Give an example
>
> Okay, a simple example would be having a unix user id "jim" and an
> /etc/aliases entry "jim_alias" that points to jim. Incoming email from
> the Internet would be blocked for jim, but would work for jim_alias.

Easy. SImply disallow all mail to these addresses:

smtpd_recipient_restrictions =
   ...
   check_recipient_access hash:/etc/postfix/disallowed_recips
   ...
   
and in /etc/postfix/disallowed_recips:
jimkrans.org 554 Nah, you'd have to use jim_alias

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Eight hours of work and all I managed to do was learn that the only
reason they call it "Windows" is because prolonged usage makes you
want to throw your computer through one...


 
Re: Adding Message-ID is wrong

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 13:16:20 CDT


>> I fix this with a header_checks entry that looks like:
>>
>> # remove From: headers that don't contain an ""
>> /^From:[^]+$/ IGNORE
>
> Excellent idea!

Yup, end of problem.. Thanks Noel..

Cami


 
Re: hotmail.com woes

From: Vivek Khera (vivekkhera.org)
Date: Wed Jun 02 2004 - 13:17:11 CDT


On Jun 2, 2004, at 9:44 AM, Victor.DuchovniMorganStanley.com wrote:

> My conjecture is that hotmail is likely indeed having a better week.
>

I concur with this. Late last week we had a minor backlog, but overall
since this thread died down last it has been pretty quick to deliver to
hotmail, even in mass quantities.


 
Re: Receiving email using aliases and not real ID's

Victor.DuchovniMorganStanley.com
Date: Wed Jun 02 2004 - 13:17:25 CDT


On Wed, 2 Jun 2004, Steve wrote:

> On Wed, Jun 02, 2004 at 07:57:17PM +0200, Ralf Hildebrandt wrote:
> > I don't understand the question. Give an example
>
> Okay, a simple example would be having a unix user id "jim" and an
> /etc/aliases entry "jim_alias" that points to jim. Incoming email from
> the Internet would be blocked for jim, but would work for jim_alias.
>

If the valid recipient table exactly coincides with the alias table:

  local_recipient_maps = $alias_maps

Otherwise create a smaller table that only enumerates the aliases for
externally valid recipients:

  external_aliases = hash:/etc/postfix/external_aliases

Then set:

  alias_database = $external_aliases, hash:/etc/postfix/aliases
  alias_maps = $alias_database
  local_recipient_maps = $external_aliases

Keep external aliases in the external_aliases file, and other aliases in
the regular aliases file. Add identity (a: a) aliases for any exposed
accounts.

--
        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:majordomopostfix.org?body=unsubscribe%20postfix-users>


 
warning: premature end-of-input on private/smtp socket while reading input attribute name

From: Joel Johnston (j.johnstonFinancialAid.com)
Date: Wed Jun 02 2004 - 13:43:46 CDT


I've searched the logs and can't find a solution other than "fix your
system," that matches my symptoms. I'm running RedHat EL with all of
the updates applied. I started off running postfix 2.0.16 and got the
same errors so I forced the uninstall and reinstalled 2.1.0 as an rpm.
I'm referencing a number of the major tutorials on building a
postfix/amavisd/clamd/spam-assassin solution and have successfully done
so in the past with earlier versions of all of the above. Everything
works until amavisd tries to send the mail back to postfix and then all
heck breaks loose. If there is something wrong with my config, I'll
bow my head in shame, but afaik, everything is in place, what can I
check?
 
 
: fatal: unknown service: smtp/tcp
Jun 2 10:55:59 fasmlrly01 postfix/qmgr[6725]: warning: premature
end-of-input on private/smtp socket while
reading input attribute name
Jun 2 10:55:59 fasmlrly01 postfix/qmgr[6725]: warning: private/smtp
socket: malformed response
Jun 2 10:55:59 fasmlrly01 postfix/qmgr[6725]: warning: transport smtp
failure -- see a previous warning/fat
al/panic logfile record for the problem description
Jun 2 10:55:59 fasmlrly01 postfix/master[6707]: warning: process
/usr/libexec/postfix/smtp pid 6734 exit st
atus 1
Jun 2 10:55:59 fasmlrly01 postfix/master[6707]: warning:
/usr/libexec/postfix/smtp: bad command startup --
throttling
Jun 2 10:56:59 fasmlrly01 postfix/smtp[6746]: fatal: unknown service:
smtp/tcp
Jun 2 10:56:59 fasmlrly01 postfix/smtp[6745]: fatal: unknown service:
smtp/tcp
Jun 2 10:57:00 fasmlrly01 postfix/qmgr[6725]: warning: premature
end-of-input on private/smtp socket while
reading input attribute name
 
 
------postconf-------
alias_database = hash:/etc/postfix/aliases
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[localhost]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = /usr/share/doc/postfix-2.1.0-documentation/html
inet_interfaces = all
local_recipient_maps =
local_transport = no local mail delivery
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maps_rbl_domains = sbl.spamhaus.org, relays.ordb.org, opm.blitzed.org,
dun.dnsrb1.net, spam.dnsrb1.net
message_size_limit = 10000000000
mydomain = mydomain.com
myhostname = fasmlrly01.mydomain.com
mynetworks = 10.4.0.0/32
myorigin = financialaid.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.0-documentation/readme
relay_domains = mydomain1.com, mydomain2.com, mydomain3.com,
mydomain4.com, mydomain5.com
sample_directory = /usr/share/doc/postfix-2.0.16/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = fasmlrly01.mydomain.com
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination
smtpd_sender_restrictions = reject_non_fqdn_sender
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550


 
Re: BCC problem

From: Kenwey Liu (yeskwms15.hinet.net)
Date: Wed Jun 02 2004 - 13:45:24 CDT


Magnus Bäck wrote:
On Wednesday, June 02, 2004 at 10:42 CEST,
     yeskw@ms15.hinet.net wrote:

  
Is there any way to know who are RCPT TO hiding behind the outgoing
mail?  because some peoples used to use outlook send mail out through
postfix server, the BCC he don't know has been added in outgoing mail,
and he said he never added it in BCC field under outlook.
    

The Postfix logs will reveal all recipients of a message.

  
for secret reason, the user wants to know whom the messages is sending before posting?
because he out of sight the email address in BCC field of outlook.

 
Re: Postfix, TLS and SASL redux...

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Wed Jun 02 2004 - 13:46:38 CDT


Am Mittwoch, 2. Juni 2004 18:43 schrieb Ed Vazquez:

> > Show your sasl-configuration (smtpd.conf).
> >
> > Switch on Verbose-Logging in master.cf for smtpd. And try it
> > again, show the Lines between "EHLO" and "MAIL FROM". Be
> > carefull not to post passwords, best to create a
> > test-account.

> # ps auxwww | grep sasl
> root 20173 0.0 0.1 100 748 ?? Is 10:39AM
> 0:00.01 /usr/local/sbin/saslauthd -a getpwent -m
> /var/spool/postfix/var/sasl2/

> # cat /usr/local/lib/sasl2/smtpd.conf
> pwcheck_method: saslauthd
> mechlist: PLAIN LOGIN

It must be "mech_list:".

> saslauthd_path: /var/sasl2

The Option saslauthd_path in smtpd.conf must include the full path to the mux.
In your case "/var/spool/postfix/var/sasl2/mux".

> [10:22:41] ESMTP< 250-AUTH PLAIN OTP LOGIN GSSAPI DIGEST-MD5
> CRAM-MD5
> [10:22:41] ESMTP< 250-AUTH=PLAIN OTP LOGIN GSSAPI DIGEST-MD5
> CRAM-MD5

> master.cf:
> smtp inet n - n - 8
> smtpd -v

> Jun 2 10:22:11 alecto postfix/smtpd[32072]: warning: SASL
> authentication failure: cannot connect to saslauthd server:
> Socket operation on non-socket
> Jun 2 10:22:11 alecto postfix/smtpd[32072]: warning: SASL
> authentication failure: cannot connect to saslauthd server:
> Socket operation on non-socket

--
        Andreas


 
Re: Virtual hosting with cyrus (mailboxes called userfoo.domain)

From: markus reichelt (mrlists.notified.de)
Date: Wed Jun 02 2004 - 13:50:07 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josef Karthauser <joetao.org.uk> wrote:
> Last question (if anyone is listening... is there anyone there?)

yes, I am.

- --
Bastard Administrator in $hell

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAviFfLMyTO8Kj/uQRAuLiAJ90WhHnkDOpQdcL9xVn7OMZHspaBwCfXeDX
r7x6spvId9zFFnNg+jcPGtc=
=UdyB
-----END PGP SIGNATURE-----


 
Re: PostNuke and POstfix

lst_hoe01kwsoft.de
Date: Wed Jun 02 2004 - 13:58:13 CDT


Zitat von Darkman <darkmanclicqx.com>:

> I am using postnuke 726, and postfix 2.1. Mandrake 10 community. I have a
> website wiht about 4000 users and when I try to send email to all users via
> the admin panel, it sends out so many and then stops, I can't tell if it
> stops because its just too many emails to handle( I don't think so) or if it
> encounters a few bad email addys and then just quits, I tail -f the mail log
> to watch it and it happens everytime. I have adjusted the main.cf file
> several times and to no avail, this is my config:

The answer is in the logs. Have a look for error/warning and report it to the
list.

Regards

Andreas


 
address rewriting

From: Togan Muftuoglu (toganmdinamizm.com)
Date: Wed Jun 02 2004 - 14:01:24 CDT


Hi,

how can configure postfix so when the user sends an email to
yahoogroups.com the sender address is rewritten userdomain.com ->
user-yahoodomain.com.

I can not see this with canonical happening so I guess header_checks
could be a solution yet I am not sure. Documentation with examples also
aprrecited

Thanks

--

Togan Muftuoglu


 
Re: Adding Message-ID is wrong

From: Lefteris Tsintjelis (leftyene.asda.gr)
Date: Wed Jun 02 2004 - 14:02:24 CDT


Noel Jones wrote:

> I fix this with a header_checks entry that looks like:
>
> # remove From: headers that don't contain an ""
> /^From:[^]+$/ IGNORE

Would it be also safe to add something like:

/\[127\.0\.0\.1\]/ IGNORE


 
Re: address rewriting

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Wed Jun 02 2004 - 14:06:40 CDT


At 02:01 PM 6/2/04, Togan Muftuoglu wrote:
>Hi,
>
>how can configure postfix so when the user sends an email to
>yahoogroups.com the sender address is rewritten userdomain.com ->
>user-yahoodomain.com.
>I can not see this with canonical happening so I guess header_checks
>could be a solution yet I am not sure. Documentation with examples also
>aprrecited

Sorry, postfix cannot rewrite the sender name based on the recipient name.
The proper solution is for the user to set the correct sender name in their
mail client.

--
Noel Jones

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


 
Re: Adding Message-ID is wrong

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Wed Jun 02 2004 - 14:10:46 CDT


At 02:02 PM 6/2/04, Lefteris Tsintjelis wrote:
>Noel Jones wrote:
>
> > I fix this with a header_checks entry that looks like:
> >
> > # remove From: headers that don't contain an ""
> > /^From:[^]+$/ IGNORE
>
>Would it be also safe to add something like:
>
>/\[127\.0\.0\.1\]/ IGNORE

What does this have to do with "Adding Message-ID is wrong" or the related
discussion about postfix rewriting From: headers???

start a new thread with a proper subject, explaining what you are trying to
do.
I'll be pleased to answer then.

--
Noel Jones

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


 
Re: warning: premature end-of-input on private/smtp socket while reading input attribute name

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Wed Jun 02 2004 - 14:13:29 CDT


Am Mittwoch, 2. Juni 2004 20:43 schrieb Joel Johnston:

> I've searched the logs and can't find a solution other than "fix your
> system," that matches my symptoms. I'm running RedHat EL with all of
> the updates applied. I started off running postfix 2.0.16 and got the
> same errors so I forced the uninstall and reinstalled 2.1.0 as an rpm.
> I'm referencing a number of the major tutorials on building a
> postfix/amavisd/clamd/spam-assassin solution and have successfully done
> so in the past with earlier versions of all of the above. Everything
> works until amavisd tries to send the mail back to postfix and then all
> heck breaks loose. If there is something wrong with my config, I'll
> bow my head in shame, but afaik, everything is in place, what can I
> check?
>
> : fatal: unknown service: smtp/tcp
> Jun 2 10:55:59 fasmlrly01 postfix/qmgr[6725]: warning: premature
> end-of-input on private/smtp socket while
> reading input attribute name
> Jun 2 10:55:59 fasmlrly01 postfix/qmgr[6725]: warning: private/smtp
> socket: malformed response
> Jun 2 10:55:59 fasmlrly01 postfix/qmgr[6725]: warning: transport smtp
> failure -- see a previous warning/fat
> al/panic logfile record for the problem description
> Jun 2 10:55:59 fasmlrly01 postfix/master[6707]: warning: process
> /usr/libexec/postfix/smtp pid 6734 exit st
> atus 1
> Jun 2 10:55:59 fasmlrly01 postfix/master[6707]: warning:
> /usr/libexec/postfix/smtp: bad command startup --
> throttling
> Jun 2 10:56:59 fasmlrly01 postfix/smtp[6746]: fatal: unknown service:
> smtp/tcp
> Jun 2 10:56:59 fasmlrly01 postfix/smtp[6745]: fatal: unknown service:
> smtp/tcp
> Jun 2 10:57:00 fasmlrly01 postfix/qmgr[6725]: warning: premature
> end-of-input on private/smtp socket while
> reading input attribute name

Check your /etc/services for a smtp-entry. And show your /etc/postfix/
master.cf (Without the comment-lines)

--
        Andreas


 
Cleaning headers

From: Lefteris Tsintjelis (leftyene.asda.gr)
Date: Wed Jun 02 2004 - 14:17:49 CDT


Noel Jones wrote:

> I fix this with a header_checks entry that looks like:
>
> # remove From: headers that don't contain an ""
> /^From:[^]+$/ IGNORE

Would it be also safe to add something like:

/\[127\.0\.0\.1\]/ IGNORE


 
Re: Authentication failed sasl & mysql (SOLVED)

From: erri (erricharlhotmail.com)
Date: Wed Jun 02 2004 - 14:23:24 CDT


I'm sad again.
I do you tell me and it doesn't works.
This is my log again:
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: connection established
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: master_notify: status 0
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: name_mask: resource
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: name_mask: software
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: name_mask: policy
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: name_mask: noanonymous
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: warning: 172.26.0.2: hostname
winxp.mydomain.com verification failed: Host not found
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: connect from
unknown[172.26.0.2]
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: unknown: no
match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: 172.26.0.2:
no match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: unknown: no
match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: 172.26.0.2:
no match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 220
mail.mydomain.com ESMTP Postfix/MJ-1.03 (2.1.1)
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_pat: 2004ec70
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: < unknown[172.26.0.2]: EHLO
pepexp
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-mail.mydomain.com
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-PIPELINING
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-SIZE 10485760
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-ETRN
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-AUTH PLAIN OTP LOGIN DIGEST-MD5 CRAM-MD5
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-AUTH=PLAIN OTP LOGIN DIGEST-MD5 CRAM-MD5
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: unknown: no
match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: 172.26.0.2:
no match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 250
8BITMIME
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_pat: 2004ec70
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: < unknown[172.26.0.2]: AUTH
LOGIN
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
sasl_method LOGIN
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
uncoded challenge: Username:
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 334
VXNlcm5hbWU6
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: < unknown[172.26.0.2]:
aW5mb0BzZXJ2eWFydGUuY29t
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
decoded response: usudomainx.com
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
uncoded challenge: Password:
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 334
UGFzc3dvcmQ6
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: < unknown[172.26.0.2]:
bWlkV2FiZGV2
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
decoded response: clave
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: mysql plugin couldnt connect
to any host
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: mysql plugin couldnt connect
to any host
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: mysql plugin couldnt connect
to any host
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: mysql plugin couldnt connect
to any host
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: warning: unknown[172.26.0.2]:
SASL LOGIN authentication failed
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 535
Error: authentication failed
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_pat: 2004ec70
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtp_get: EOF
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: lost connection after AUTH
from unknown[172.26.0.2]
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: disconnect from
unknown[172.26.0.2]
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: master_notify: status 1
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: connection closed
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_stop: 2004ec70
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_start: 2004ec70

Any more idea ?


 
Re: Virtual hosting with cyrus (mailboxes called userfoo.domain)

From: Josef Karthauser (joetao.org.uk)
Date: Wed Jun 02 2004 - 14:24:47 CDT


On Wed, Jun 02, 2004 at 08:50:07PM +0200, markus reichelt wrote:
> Josef Karthauser <joetao.org.uk> wrote:
> > Last question (if anyone is listening... is there anyone there?)
>
> yes, I am.
>

*phew* I thought I was talking to myself for a while back there.

Joe (singing "I'm going slightly mad....")
--
Josef Karthauser (joetao.org.uk) http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/
Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iEYEARECAAYFAkC+KX4ACgkQXVIcjOaxUBZnAACg4RQhAIUyLK0q62Zcycw1Jh7a
nbgAn0GIp3TXojq2VqBVLo1qLf54zuOb
=v6CP
-----END PGP SIGNATURE-----


 
popauth3, a POP-before-SMTP with anti-UCE measures that extend postfix, is now available.

From: William Kimball, Jr. (popauth3teamdelsol.com)
Date: Wed Jun 02 2004 - 14:36:34 CDT


Postfix users:

A long time ago, you helped me establish my first mail server that had to support roaming users. From this list, I was
introduced by Stephen McHenry to a simple POP-before-SMTP authentication program dubbed popauth (version 2 of the
original popauther program). Since then, I have fully rewritten popauth to extend postfix's anti-UCE measures in
addition to its IP-based relay authentication.

I have been reading this mailing list ever since, taking bits and pieces of excellent advise and applying it where it
fulfilled a need. I would like to give back. I often see people looking for a POP-before-SMTP solution. I know there
are several out there. I also often see people looking for stronger anti-UCE mechanisms to protect their mail servers.
While there are myriad solutions to fulfill either need, I would like to add mine to the pile because -- as far as I can
tell -- it is unique in its implementation.

I am releasing popauth3 under the GNU GPL for your consumption and feedback. Even if you are already happy with your
own POP-before-SMTP solution, please consider reviewing this one for it's anti-UCE measures.

Source, installation instructions, and configuration samples are available at:
http://mail.teamdelsol.com/popauth3/

Thank you very much for your time and all the help you've given me in the past!

--
William Kimball, Jr.
"Programming is an art-form that fights back!"


 
Re: Cleaning headers

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 14:34:57 CDT


* Lefteris Tsintjelis <leftyene.asda.gr>:
> Noel Jones wrote:
>
> > I fix this with a header_checks entry that looks like:
> >
> > # remove From: headers that don't contain an ""
> > /^From:[^]+$/ IGNORE
>
> Would it be also safe to add something like:
>
> /\[127\.0\.0\.1\]/ IGNORE

You have NOT started a new thread. If you were using a real MUA you'd
notice that you left the References & In-Reply-To headers intact.

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Hardware /nm./: the part of the computer that you can kick.


 
high load question

pfsistemasdinamicos.com.ar
Date: Wed Jun 02 2004 - 14:37:49 CDT


Helo.
I have the following setup.
Postfix + SASL2 doing its lookups in a mysql db.
Courier-imap doing its lookups also in the same mysqldb.

An school asked me to setup an account with 5.000 pop/imap accounts,
about half being used most of the time.

I dont think my current setup will be enought for that, mainly because
of the mysql server just takes 200 cons/sec and generating high load.
They also wants a webmail, I use SquirrelMail for that, so everytime
they change a page it will be a conn to the mysql server. I think it
will be too much load for my only server doing everything (www, smtp,
pop/imap, etc).

Does anybody knows:

1) Am I beeing too conservative and the present setup can handle the
load comfortably
2) If not, please, any links to read about this subject and on how can
I setup a server to support that, maybe without mysql.

Thanks a lot in advace.

H Marino


 
Re: Postfix, TLS and SASL redux...

From: Ed Vazquez (ed.vazquezdhha.org)
Date: Wed Jun 02 2004 - 14:43:35 CDT


--On Wednesday, June 02, 2004 20:46 +0200 Andreas Winkelmann
<mlawinkelmann.de> wrote:

> Am Mittwoch, 2. Juni 2004 18:43 schrieb Ed Vazquez:
>
>
>> # cat /usr/local/lib/sasl2/smtpd.conf
>> pwcheck_method: saslauthd
>> mechlist: PLAIN LOGIN
>
> It must be "mech_list:".
>

Ah, typo. Must have been staring at it for too long to
actually see it. Thanks.

>> saslauthd_path: /var/sasl2
>
> The Option saslauthd_path in smtpd.conf must include the full
> path to the mux. In your case
> "/var/spool/postfix/var/sasl2/mux".
>

Hum, the path is a leftover from running in chroot. I had
sym-linked
to the correct path:
# ls -l /var/sasl2
lrwxr-xr-x 1 root wheel 28 May 8 20:01 sasl2 ->
/var/spool/postfix/var/sasl2

but apparently the combination of me misreading the saslauthd
manpage
where it says I _shouldn't_ append the "mux" and having the
link broke things.

Correcting the path by adding the "mux" was enough to make this
work.

>
> --
> Andreas
>
>

With that, moving the master.cf back to CHROOT status still
works as it should.

Many thanks again!

--
Ed Vazquez

An authority is somebody who can tell you more about something
than you really care to know.


 
Re: Cleaning headers

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Wed Jun 02 2004 - 14:43:17 CDT


[well, you made an effort anyway. Next time create a new message. It's
not that hard to write "postfix-userspostfix.org" in the To: line even if
it's not in your address book.]

At 02:17 PM 6/2/04, Lefteris Tsintjelis wrote:
>Noel Jones wrote:
>
> > I fix this with a header_checks entry that looks like:
> >
> > # remove From: headers that don't contain an ""
> > /^From:[^]+$/ IGNORE
>
>Would it be also safe to add something like:
>
>/\[127\.0\.0\.1\]/ IGNORE

If your intention is to remove Received: headers added by your machine,
it's probably better to make the expression more specific, such as
including your machine name.
I don't usually like to remove Received: headers added by others as they
are sometimes helpful in finding problems, and your expression will match
headers added by anyone.

At any rate, it is safe to use the expression you posted above, in the
sense that it's unlikely to break anything. But I'm not sure how good an
idea it is...

--
Noel Jones

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


 
Cleaning up headers

From: Lefteris Tsintjelis (leftyene.asda.gr)
Date: Wed Jun 02 2004 - 14:43:57 CDT


(I do hope its OK now!)

Is it OK to use the following expretion to clean up headers?

/\[127\.0\.0\.1\]/ IGNORE

TIA


 
Re: high load question

From: Chris Cameron (chrisupnix.com)
Date: Wed Jun 02 2004 - 14:39:23 CDT


You probably want to look into an IMAP proxy (I think they're called).
They basically hold the IMAP connection open waiting for the next
connect from webmail.

Also, I dumped Squrriel Mail in favour of Horde/IMP and noticed that IMP
had a MUCH lower impact on the server than Squirrel Mail did.

I don't have any numbers for that, but I did notice httpd processes
didn't use anywhere near as much CPU as they were before.

I have no idea whether your current setup can deal with the extra users,
but separating MySQL and the rest of your setup might be an easy thing
to do to make what you have work. You might want to make sure webmail
is on a different server first though.

Chris

On June 2, 2004 01:37 pm, pfsistemasdinamicos.com.ar wrote:
> Helo.
> I have the following setup.
> Postfix + SASL2 doing its lookups in a mysql db.
> Courier-imap doing its lookups also in the same mysqldb.
>
> An school asked me to setup an account with 5.000 pop/imap accounts,
> about half being used most of the time.
>
> I dont think my current setup will be enought for that, mainly
> because of the mysql server just takes 200 cons/sec and generating
> high load. They also wants a webmail, I use SquirrelMail for that, so
> everytime they change a page it will be a conn to the mysql server. I
> think it will be too much load for my only server doing everything
> (www, smtp, pop/imap, etc).
>
> Does anybody knows:
>
> 1) Am I beeing too conservative and the present setup can handle the
> load comfortably
> 2) If not, please, any links to read about this subject and on how
> can I setup a server to support that, maybe without mysql.
>
> Thanks a lot in advace.
>
> H Marino

--
Chris Cameron
UpNIX Internet Administrator
ardvark.upnix.net
gak.upnix.net
--
http://www.upnix.com


 
Re: high load question

pfsistemasdinamicos.com.ar
Date: Wed Jun 02 2004 - 15:10:17 CDT


Thank you very much for your reply.
The mysql server daemon to do the loopkups is alredy separated from
the the other mysql daemon (used for www sites, etc).

I would like to bring up another mysql just for the school, but I cant
find the answer in my head how can I tell the same postfix and the
same courier to look in the new mysql daemon, besides the current
mysql.

I dont know how can I tell SALS2 in /usr/lib/.../smtpd.conf to lookup
also in the extra DB, with another port (ie, it would have to look in
the current db:port and the new db:port), also how can I make the
authdaemon of courier to lookup in that DB too. Mybe putting another
postfix and courier in another ip, but it is a lot just for 5000
accounts, I mean, I know postfix and imap can handle that ammount of
users more than easily. The only problem is the mysql daemon.
Perhaps I should find how to optimize the mysql server, but I really
would like a separate mysql daemon just for the schooll.

Any help greatly appreciated.

Thanks.

H Marino

On Wed, 2 Jun 2004 13:39:23 -0600, Chris Cameron wrote:
> You probably want to look into an IMAP proxy (I think they're
called).
> They basically hold the IMAP connection open waiting for the next
> connect from webmail.
>
> Also, I dumped Squrriel Mail in favour of Horde/IMP and noticed that
IMP
> had a MUCH lower impact on the server than Squirrel Mail did.
>
> I don't have any numbers for that, but I did notice httpd processes
> didn't use anywhere near as much CPU as they were before.
>
>
> I have no idea whether your current setup can deal with the extra
users,
> but separating MySQL and the rest of your setup might be an easy
thing
> to do to make what you have work. You might want to make sure
webmail
> is on a different server first though.
>
> Chris
>
>
> On June 2, 2004 01:37 pm, pfsistemasdinamicos.com.ar wrote:
>> Helo.
>> I have the following setup.
>> Postfix + SASL2 doing its lookups in a mysql db.
>> Courier-imap doing its lookups also in the same mysqldb.
>>
>> An school asked me to setup an account with 5.000 pop/imap
accounts,
>> about half being used most of the time.
>>
>> I dont think my current setup will be enought for that, mainly
>> because of the mysql server just takes 200 cons/sec and generating
>> high load. They also wants a webmail, I use SquirrelMail for that,
so
>> everytime they change a page it will be a conn to the mysql server.
I
>> think it will be too much load for my only server doing everything
>> (www, smtp, pop/imap, etc).
>>
>> Does anybody knows:
>>
>> 1) Am I beeing too conservative and the present setup can handle
the
>> load comfortably
>> 2) If not, please, any links to read about this subject and on how
>> can I setup a server to support that, maybe without mysql.
>>
>> Thanks a lot in advace.
>>
>> H Marino
>
> --
> Chris Cameron
> UpNIX Internet Administrator
> ardvark.upnix.net
> gak.upnix.net
> --
> http://www.upnix.com


 
Re: high load question

From: Cami (camismweb.co.za)
Date: Wed Jun 02 2004 - 15:23:40 CDT


> I dont know how can I tell SALS2 in /usr/lib/.../smtpd.conf to lookup
> also in the extra DB, with another port (ie, it would have to look in
> the current db:port and the new db:port), also how can I make the
> authdaemon of courier to lookup in that DB too. Mybe putting another
> postfix and courier in another ip, but it is a lot just for 5000
> accounts, I mean, I know postfix and imap can handle that ammount of
> users more than easily. The only problem is the mysql daemon.

MySQL will handle 5000 users very easily..

> Perhaps I should find how to optimize the mysql server, but I really
> would like a separate mysql daemon just for the schooll.

Separating your services is a good idea, but thats not going to solve
your problem if your database has not been designed (and optimized)
correctly.

Cami


 
Re: high load question

lst_hoe01kwsoft.de
Date: Wed Jun 02 2004 - 15:30:41 CDT


Zitat von pfsistemasdinamicos.com.ar:

> Helo.
> I have the following setup.
> Postfix + SASL2 doing its lookups in a mysql db.
> Courier-imap doing its lookups also in the same mysqldb.
>
> An school asked me to setup an account with 5.000 pop/imap accounts,
> about half being used most of the time.
>
> I dont think my current setup will be enought for that, mainly because
> of the mysql server just takes 200 cons/sec and generating high load.
> They also wants a webmail, I use SquirrelMail for that, so everytime
> they change a page it will be a conn to the mysql server. I think it
> will be too much load for my only server doing everything (www, smtp,
> pop/imap, etc).

- Use the proxymap feature to reduce the number of open connections to MySQL
- Reduce the number of postfix processes to something you system can handle
- Be sure to create a index on all fields heavily used.
- Get a lot of RAM for webmail
- Get a fast I/O system

Regards

Andreas


 
Re: Receiving email using aliases and not real ID's

From: Steve (f5c0krans.org)
Date: Wed Jun 02 2004 - 15:33:04 CDT


On Wed, Jun 02, 2004 at 08:14:35PM +0200, Ralf Hildebrandt wrote:
> Easy. SImply disallow all mail to these addresses:
>
> smtpd_recipient_restrictions =
> ...
> check_recipient_access hash:/etc/postfix/disallowed_recips
> ...
>
> and in /etc/postfix/disallowed_recips:
> jimkrans.org 554 Nah, you'd have to use jim_alias

This is working for me, thanks for eveyones help!

Steve


 
Re: high load question

pfsistemasdinamicos.com.ar
Date: Wed Jun 02 2004 - 15:32:35 CDT


reading my own post I can see that it is possible to tell SASL2 to
look into several mysql with
sql_hostnames:127.0.0.1:3398,127.0.0.1:3498 for ex.
But remains the courier-imap lookup problem.
Perhaps yes bringing up another imap in another ip and finding how can
I pass the new daemon another config directory.

Any help on this?

Thanks a lot!

H Marino

On Wed, 2 Jun 2004 17:10:17 -0300, pfsistemasdinamicos.com.ar wrote:
> Thank you very much for your reply.
> The mysql server daemon to do the loopkups is alredy separated from
> the the other mysql daemon (used for www sites, etc).
>
> I would like to bring up another mysql just for the school, but I
cant
> find the answer in my head how can I tell the same postfix and the
> same courier to look in the new mysql daemon, besides the current
> mysql.
>
> I dont know how can I tell SALS2 in /usr/lib/.../smtpd.conf to
lookup
> also in the extra DB, with another port (ie, it would have to look
in
> the current db:port and the new db:port), also how can I make the
> authdaemon of courier to lookup in that DB too. Mybe putting another
> postfix and courier in another ip, but it is a lot just for 5000
> accounts, I mean, I know postfix and imap can handle that ammount of
> users more than easily. The only problem is the mysql daemon.
> Perhaps I should find how to optimize the mysql server, but I really
> would like a separate mysql daemon just for the schooll.
>
> Any help greatly appreciated.
>
> Thanks.
>
> H Marino
>
> On Wed, 2 Jun 2004 13:39:23 -0600, Chris Cameron wrote:
>> You probably want to look into an IMAP proxy (I think they're
> called).
>> They basically hold the IMAP connection open waiting for the next
>> connect from webmail.
>>
>> Also, I dumped Squrriel Mail in favour of Horde/IMP and noticed
that
> IMP
>> had a MUCH lower impact on the server than Squirrel Mail did.
>>
>> I don't have any numbers for that, but I did notice httpd processes
>> didn't use anywhere near as much CPU as they were before.
>>
>>
>> I have no idea whether your current setup can deal with the extra
> users,
>> but separating MySQL and the rest of your setup might be an easy
> thing
>> to do to make what you have work. You might want to make sure
> webmail
>> is on a different server first though.
>>
>> Chris
>>
>>
>> On June 2, 2004 01:37 pm, pfsistemasdinamicos.com.ar wrote:
>>> Helo.
>>> I have the following setup.
>>> Postfix + SASL2 doing its lookups in a mysql db.
>>> Courier-imap doing its lookups also in the same mysqldb.
>>>
>>> An school asked me to setup an account with 5.000 pop/imap
> accounts,
>>> about half being used most of the time.
>>>
>>> I dont think my current setup will be enought for that, mainly
>>> because of the mysql server just takes 200 cons/sec and generating
>>> high load. They also wants a webmail, I use SquirrelMail for that,
> so
>>> everytime they change a page it will be a conn to the mysql
server.
> I
>>> think it will be too much load for my only server doing everything
>>> (www, smtp, pop/imap, etc).
>>>
>>> Does anybody knows:
>>>
>>> 1) Am I beeing too conservative and the present setup can handle
> the
>>> load comfortably
>>> 2) If not, please, any links to read about this subject and on how
>>> can I setup a server to support that, maybe without mysql.
>>>
>>> Thanks a lot in advace.
>>>
>>> H Marino
>>
>> --
>> Chris Cameron
>> UpNIX Internet Administrator
>> ardvark.upnix.net
>> gak.upnix.net
>> --
>> http://www.upnix.com


 
Re: high load question

pfsistemasdinamicos.com.ar
Date: Wed Jun 02 2004 - 15:39:20 CDT


Thank you very much to all of you.

It seems that the bottleneck is the mysql config, according to some
replys.
I will try to sort it out and see what happens.

Just one last question. What would be the best setup for postfix and
courier to handle very high volumes of traffic/users. I'm thinking in
redoing everything :)

Thanks again.

H Marino

On Wed, 02 Jun 2004 22:23:40 +0200, Cami wrote:
>> I dont know how can I tell SALS2 in /usr/lib/.../smtpd.conf to
lookup
>> also in the extra DB, with another port (ie, it would have to look
in
>> the current db:port and the new db:port), also how can I make the
>> authdaemon of courier to lookup in that DB too. Mybe putting
another
>> postfix and courier in another ip, but it is a lot just for 5000
>> accounts, I mean, I know postfix and imap can handle that ammount
of
>> users more than easily. The only problem is the mysql daemon.
>
> MySQL will handle 5000 users very easily..
>
>> Perhaps I should find how to optimize the mysql server, but I
really
>> would like a separate mysql daemon just for the schooll.
>
> Separating your services is a good idea, but thats not going to
solve
> your problem if your database has not been designed (and optimized)
> correctly.
>
> Cami


 
Re: Cleaning headers

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 15:45:35 CDT


* Noel Jones <njonesmegan.vbhcs.org>:

> If your intention is to remove Received: headers added by your machine,
> it's probably better to make the expression more specific, such as
> including your machine name.

Yes. The best way is to take an actual Received: header and to
generalize that.

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Why you can't find your system administrators:
rcp $FAV_RESTAURANT:$FAV_FOOD /dev/stomach


 
Re: Cleaning up headers

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 15:46:35 CDT


* Lefteris Tsintjelis <leftyene.asda.gr>:

> (I do hope its OK now!)
Yes.
 
> Is it OK to use the following expretion to clean up headers?
>
> /\[127\.0\.0\.1\]/ IGNORE

Probably. I use:

/^Received: from hauptpostamt\.charite\.de \(\[127\.0\.0\.1\]\)/ IGNORE
/^Received: from localhost \(localhost \[127\.0\.0\.1\]\)/ IGNORE

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Unfortunately, law makers don't believe in the laws of physics or
mathematics, only their own laws. When will the emperor discover that he has
no clothes?


 
Re: Stop local delivery

From: Matt Thoene (mattremedyx.com)
Date: Wed Jun 02 2004 - 15:47:19 CDT


Hello Matt,

Wednesday, June 2, 2004, 10:57:38 AM, Matt Thoene wrote:

> Hello,

> I know this is an easy one but I'm not having any luck. I have
> multiple domains on postfix server A. I recently moved one of the
> domains to postfix server B. I have several users who use a web based
> mail client on server A. If they send mail from their client to any
> user at the recently moved domain, the mail still gets delivered
> locally and not sent to the new server B. I have a need to leave the
> old accounts on server A for a while. What do I have to change to
> force Postfix to ignore the local accounts?

For the archives...

The answer is in transport maps.

/etc/postfix/transport

moveddomain smtp:newmailhost

Thanks em at telerama dot com for the reply and assistance.

--
Matt


 
virtual domains

From: Lieven Vanhulle (lieven.vanhullepandora.be)
Date: Wed Jun 02 2004 - 15:47:23 CDT


hello all,

I have a Postfix mailserver where I have done some tests with adding a
virtual domain.
I have used virtual_alias_domain = virt_domain.be and in the virtual file I
have set
infovirt_domain.be john

So far so good, mail for infovirt_domain.be arrives in john's maildir.
John is a user of the main_domain.be and has johnmain_domain.be as e-mail
address. Addresses like this one are created by simply adding a user with
adduser.
A ~/Maildir is created with it.

Now, how can I create an account for john with the e-mail address like
johnvirt_domain.be
so that john can also send mail as being a member of virt_domain.be ?
Could it work by configuring the e-mail address like johnvirt_domain.be in
the mailclient
using the login for user john?

Can anyone advise me?

Thanks and best regards,
Lieven

Lieven Vanhulle on4cvl
Stuifkouter 52
B-8790 Waregem
Belgium


 
Re: Cleaning up headers

From: David Landgren (davidlandgren.net)
Date: Wed Jun 02 2004 - 16:12:08 CDT


Ralf Hildebrandt wrote:
> * Lefteris Tsintjelis <leftyene.asda.gr>:
>
>
>>(I do hope its OK now!)
>
> Yes.
>
>
>>Is it OK to use the following expretion to clean up headers?
>>
>>/\[127\.0\.0\.1\]/ IGNORE
>
>
> Probably. I use:
>
> /^Received: from hauptpostamt\.charite\.de \(\[127\.0\.0\.1\]\)/ IGNORE
> /^Received: from localhost \(localhost \[127\.0\.0\.1\]\)/ IGNORE

Ralf, why do you do this? You do this on outbound mail? Is this to
prevent information about your internal network leaking outside?

Enquiring minds want to know.

Thanks,
David


 
Re: PostNuke and POstfix

From: Darkman (darkmanclicqx.com)
Date: Wed Jun 02 2004 - 16:22:38 CDT


as far as I can see, there is no error. sends mail out, then after so
many, it just stops like it's finished the job.....but it doesn't
approach the 1000 mark at all, let alone 4000. but I will post the last
parts of the log when I get home....

-----Original Message-----
From: lst_hoe01kwsoft.de
To: postfix-userspostfix.org
Date: Wed, 2 Jun 2004 20:58:13 +0200
Subject: Re: PostNuke and POstfix

> Zitat von Darkman <darkmanclicqx.com>:
>
> > I am using postnuke 726, and postfix 2.1. Mandrake 10 community. I
> have a
> > website wiht about 4000 users and when I try to send email to all
> users via
> > the admin panel, it sends out so many and then stops, I can't tell if
> it
> > stops because its just too many emails to handle( I don't think so)
> or if it
> > encounters a few bad email addys and then just quits, I tail -f the
> mail log
> > to watch it and it happens everytime. I have adjusted the main.cf
> file
> > several times and to no avail, this is my config:
>
> The answer is in the logs. Have a look for error/warning and report it
> to the
> list.
>
> Regards
>
> Andreas


 
Re: Cleaning up headers

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Wed Jun 02 2004 - 16:15:32 CDT


* David Landgren <davidlandgren.net>:

> >/^Received: from hauptpostamt\.charite\.de \(\[127\.0\.0\.1\]\)/ IGNORE
> >/^Received: from localhost \(localhost \[127\.0\.0\.1\]\)/ IGNORE
>
> Ralf, why do you do this? You do this on outbound mail?

Yes.

> Is this to prevent information about your internal network leaking
> outside?

Obviously.

--
Ralf Hildebrandt Ralf.Hildebrandtcharite.de
my current spamtrap spamtrapcharite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Why you can't find your system administrators:
(S)he's at the CA meeting (Caffeeine Anonymous)


 
Re: Authentication failed sasl & mysql (SOLVED)

From: erri (erricharlhotmail.com)
Date: Wed Jun 02 2004 - 16:16:35 CDT


I'm sad again.
I do you tell me and it doesn't works.
This is my log again:
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: connection established
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: master_notify: status 0
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: name_mask: resource
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: name_mask: software
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: name_mask: policy
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: name_mask: noanonymous
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: warning: 172.26.0.2: hostname
winxp.mydomain.com verification failed: Host not found
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: connect from
unknown[172.26.0.2]
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: unknown: no
match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: 172.26.0.2:
no match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: unknown: no
match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: 172.26.0.2:
no match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 220
mail.mydomain.com ESMTP Postfix/MJ-1.03 (2.1.1)
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_pat: 2004ec70
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: < unknown[172.26.0.2]: EHLO
pepexp
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-mail.mydomain.com
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-PIPELINING
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-SIZE 10485760
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-ETRN
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-AUTH PLAIN OTP LOGIN DIGEST-MD5 CRAM-MD5
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]:
250-AUTH=PLAIN OTP LOGIN DIGEST-MD5 CRAM-MD5
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: unknown: no
match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: match_list_match: 172.26.0.2:
no match
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 250
8BITMIME
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_pat: 2004ec70
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: < unknown[172.26.0.2]: AUTH
LOGIN
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
sasl_method LOGIN
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
uncoded challenge: Username:
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 334
VXNlcm5hbWU6
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: < unknown[172.26.0.2]:
aW5mb0BzZXJ2eWFydGUuY29t
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
decoded response: usudomainx.com
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
uncoded challenge: Password:
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 334
UGFzc3dvcmQ6
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: < unknown[172.26.0.2]:
bWlkV2FiZGV2
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtpd_sasl_authenticate:
decoded response: clave
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: mysql plugin couldnt connect
to any host
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: mysql plugin couldnt connect
to any host
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: mysql plugin couldnt connect
to any host
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: mysql plugin couldnt connect
to any host
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: warning: unknown[172.26.0.2]:
SASL LOGIN authentication failed
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: > unknown[172.26.0.2]: 535
Error: authentication failed
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_pat: 2004ec70
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: smtp_get: EOF
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: lost connection after AUTH
from unknown[172.26.0.2]
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: disconnect from
unknown[172.26.0.2]
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: master_notify: status 1
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: connection closed
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_stop: 2004ec70
Jun 2 21:21:30 aixsrv2 postfix/smtpd[299170]: watchdog_start: 2004ec70

Any more idea ?


 
Re: Sender address rejected: Access denied

From: David Landgren (davidlandgren.net)
Date: Wed Jun 02 2004 - 16:30:19 CDT


Darren wrote:

> Hello,
>
> I've setup our server to block emails from addresses (hotmail/yahoo/msn
> etc.) that don't originate from the proper server.
>
> We are having a little issue. When eBay sends out certain emails it uses
> the customers address (joeblowhotmail.com) which of course our server
> would now reject because it's not coming from the Hotmail servers.

You have your access maps in the wrong order. Do a client check early on
in the game to get Ebay out of the way (possibly divert to a seperate
restriction class that has lighter controls). Then in a subsequent
sender access map you check for spoofed domains.

Something like:

smtpd_recipient_restrictions =
     permit_mynetworks
     reject_unauth_destination
     reject_unauth_pipelining
     reject_non_fqdn_recipient
     reject_non_fqdn_sender
     # check for clients who tend to forward stuff here
     check_client_access hash:/etc/postfix/uce/client_checks
     # check hotmail.com et al spoofs here
     check_sender_access hash:/etc/postfix/uce/sender_checks

I have a number of local ISPs handled this way. I think many people
start out with a Yahoo! (or whatever) address at a web café or at work.
When they install a home connection they want to keep using that
address, as all their friends know it (and plus it's probably a good
idea because it gives you a certain amount of ISP independance). So if
you don't get your neighbourhood ISP out of the way early you might wind
up blocking a lot of legitimate traffic.

David


 
Re: BCC problem

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Jun 02 2004 - 17:09:29 CDT


If you post in plain text (not HTML), I will read and perhaps answer
your question.

--
Magnus Bäck
magnusdsek.lth.se


 
Re: virtual domains

From: Magnus Bäck (magnusdsek.lth.se)
Date: Wed Jun 02 2004 - 17:16:25 CDT


On Wednesday, June 02, 2004 at 22:47 CEST,
     Lieven Vanhulle <lieven.vanhullepandora.be> wrote:

[...]

> Now, how can I create an account for john with the e-mail address like
> johnvirt_domain.be
> so that john can also send mail as being a member of virt_domain.be ?
> Could it work by configuring the e-mail address like
> johnvirt_domain.be in the mailclient using the login for user john?

Setting a suitable sender address is the responsibility of the MUA, and
has nothing to do with the setup of virtual domains in Postfix.

(Postfix can however be used to rewrite sender and/or recipient addresses.)

--
Magnus Bäck
magnusdsek.lth.se


 
smtpd proxy problem with authentication

From: Daniel E. Eisenbud (eisenbudcbio.mskcc.org)
Date: Wed Jun 02 2004 - 17:20:30 CDT


I just upgraded to the debian package of postfix 2.1.1, and switched our
amavis setup to use the smtpd proxy, so that we could reject viruses
during the SMTP dialogue. This seemed to be working great, until I
discovered that we were rejecting all mail from MIT, because we
advertise SMTP AUTH (which we use), MIT was sending mail with an AUTH=<>
argument to MAIL FROM:, and postfix was giving that argument to amavis,
which doesn't advertise that ESMTP extension, and chokes on it.

It seems to me that amavis is not really broken in this respect, and
that postfix probably shouldn't require filters to support SMTP AUTH
(though if they do support it, they might be able to do useful things
with the information) so I'm wondering whether there's any way to stop
postfix from passing this on to amavis.

Thanks,
Daniel

--
Daniel E. Eisenbud
eisenbudcbio.mskcc.org
Computational Biology Center
Memorial Sloan-Kettering Cancer Center


 
LOOPING ERROR

From: RYAN vAN GINNEKEN (rmvgshaw.ca)
Date: Wed Jun 02 2004 - 17:56:50 CDT


I use freebsd 4.9 stable and postfix 2.0.0.19 and have my postfix system
secured with TLS and SASL2. I have three servers running at three
different locations
server 1 computerking.ca
server 2 shoemasters.computerking.ca
server 2 highcoup.ca

Have mx records for them all in my DNS similar to these, of course they
vary slightly from server to server. However these are the ones from
the server having looping problems with shoemasters.computerking.ca.

shoemasters.computerking.ca. IN MX 10 mail1.shoemasters.computerking.ca.
shoemasters.computerking.ca. IN MX 20 mail1.computerking.ca.
shoemasters.computerking.ca. IN MX 30 mail1.highcoup.ca

Have the following lines added to my main .cf file in order to setup
backup servers. Am i missing something here or is the below correct
have not made any changes to my master.cf file do i need something
there maybe???

myhostname = mail1.shoemasters.computerking.ca
mydomain = shoemasters.computerking.ca
proxy_interfaces = mail1.computerking.ca, mail1.highcoup.ca
mydestination = $myhostname, localhost.$mydomain $mydomain
relay_domains = $mydestination, mail1.computerking.ca, mail1.highcoup.ca

this is my log of the looping problem

Jun 2 16:08:30 shoemasters postfix/smtpd[2196]: 29EC7534E:
client=S0106000475a15334.cg.shawcable.net[68.146.233.221],
sasl_method=LOGIN, sasl_username=rmvg
Jun 2 16:08:30 shoemasters postfix/cleanup[2198]: 29EC7534E:
message-id=<003801c448ee$25b19d70$0100a8c0v22001>
Jun 2 16:08:30 shoemasters postfix/qmgr[214]: 29EC7534E:
from=<rmvgshoemasters.computerking.ca>, size=1494, nrcpt=1 (queue active)
Jun 2 16:08:30 shoemasters postfix/smtp[2200]: warning: mailer loop:
best MX host for computerking.ca is local
Jun 2 16:08:30 shoemasters postfix/smtp[2200]: 29EC7534E:
to=<rmvgcomputerking.ca>, relay=none, delay=0, status=bounced (mail for
computerking.ca loops back to myself)
Jun 2 16:08:30 shoemasters postfix/cleanup[2198]: 93E5B5393:
message-id=<20040602220830.93E5B5393mail1.shoemasters.computerking.ca>

here is the output of a postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
home_mailbox = IMAPdir/INBOX/
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = shoemasters.computerking.ca
myhostname = mail1.shoemasters.computerking.ca
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
proxy_interfaces = mail1.computerking.ca, mail1.highcoup.ca
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination, mail1.computerking.ca, mail1.highcoup.ca
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_loglevel = 2
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_mx_backup
permit_sasl_authenticated
, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mx_backup
permit_sasl_authenticated,
       permit_mynetworks, reject_unauth_destination
smtpd_tls_CAfile = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_key_file = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450

THANK U IN ADVANCE


 
selective use of amavisd-new

From: Robin Lynn Frank (rlfrank