Re: plus addressing over lmtp not working / sam [box] anyone p set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 10, 2008 at 4:04 PM, Stefan Pampel antispam
<spamtest-eir1beucei@xxxxxxxxxxxxxxxxxx> wrote:
> Hello  all,
>
> thanks for you replies.
>
> ["Followup-To:" nach gmane.mail.imap.cyrus gesetzt.]
> Lan Tran <llt@xxxxxxxxx> schrieb:
>> From: "Alain Spineux" <aspineux@xxxxxxxxx>
>>> On Tue, Dec 2, 2008 at 8:59 PM, Stefan Pampel
>>> <spamtest-eir1beucei@xxxxxxxxxxxxxxxxxx> wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Alain Spineux <aspineux@xxxxxxxxx> schrieb:
>>>> <snip>
>>>> Dec  2 20:44:19 asp4 postfix/smtpd[6073]: connect from
>>>> mail-qy0-f21.google.com[209.85.221.21]
>>>> Dec  2 20:44:20 asp4 postfix/smtpd[6073]: 53DEDE01D5A:
>>>> client=mail-qy0-f21.google.com[209.85.221.21]
>>>> Dec  2 20:44:20 asp4 postfix/cleanup[6076]: 53DEDE01D5A:
>>>> message-id=<fe5446ec0812021144o6d3270b7x372ae0cdbc7cec5@xxxxxxxxxxxxxx>
>>>> Dec  2 20:44:20 asp4 postfix/qmgr[2392]: 53DEDE01D5A:
>>>> from=<foobar@xxxxxxxxx>, size=2214, nrcpt=1 (queue active)
>>>> Dec  2 20:44:21 asp4 postfix/smtpd[6081]: connect from
> unknown[127.0.0.1]
>>>> Dec  2 20:44:21 asp4 postfix/smtpd[6081]: D0B24EF4D11:
>>>> client=unknown[127.0.0.1]
>>>> Dec  2 20:44:21 asp4 postfix/cleanup[6076]: D0B24EF4D11:
>>>> message-id=<fe5446ec0812021144o6d3270b7x372ae0cdbc7cec5@xxxxxxxxxxxxxx>
>>>> Dec  2 20:44:21 asp4 postfix/smtpd[6081]: disconnect from
>>>> unknown[127.0.0.1]
>>>> Dec  2 20:44:21 asp4 postfix/qmgr[2392]: D0B24EF4D11:
>>>> from=<foobar@xxxxxxxxx>, size=2816, nrcpt=1 (queue active)
>>>> Dec  2 20:44:21 asp4 cyrus/lmtpunix[6070]: accepted connection
>>>> Dec  2 20:44:21 asp4 cyrus/lmtpunix[6070]: lmtp connection preauth'd as
>>>> postman
>>>> Dec  2 20:44:21 asp4 cyrus/master[6083]: about to exec
>>>> /usr/lib/cyrus/bin/lmtpd
>>>> Dec  2 20:44:21 asp4 cyrus/lmtpunix[6083]: executed
>>>> Dec  2 20:44:21 asp4 amavis[17280]: (17280-18) Passed CLEAN,
>>>> [209.85.221.21] [209.85.221.21] <foobar@xxxxxxxxx> -> <user@xxxxxxx>,
>>>> Message-ID:
> <fe5446ec0812021144o6d3270b7x372ae0cdbc7cec5@xxxxxxxxxxxxxx>,
>>>> mail_id: ggSVa5nIr8Oq, Hits: -0.001, size: 2214, queued_as:
> D0B24EF4D11,
>>>> 1298 m
>>>> s
>>>> Dec  2 20:44:21 asp4 postfix/lmtp[6077]: 53DEDE01D5A:
> to=<user@xxxxxxx>,
>>>> orig_to=<user+spam@xxxxxxx>, relay=127.0.0.1
>>>> [127.0.0.1]:10024, delay=1.7, delays=0.39/0/0/1.3, dsn=2.0.0,
> status=sent
>>>> (250 2.0.0 Ok, id=17280-18, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok:
>>>> queued a
>>>
>>> HERE is the "culprit" ! postfix tell us, it got "user+spam" and give
>>> back "user" to [127.0.0.1]:10024 !
>
> ok, the problem is that postfix remove the +whatever . I've done some
> researches on this, but actually i didn't found a solution. In case of
> being OT just ignore my reply, but maybe someone can give a hint on this
> issue.

I dont see nothing wrong in your main.cf
Can you post your master.cf ?
You will get a better answer on the postfix mailing list :-)

>
> My tests:
> sending fom command line to port 10025 (means bypassing amavis)
>
> <snip>
> Return-Path: <to_port10025@xxxxxxxxxx>
> Received: from foo.org ([unix socket])
>         by foo.org (Cyrus v2.2.13-Debian-2.2.13-14+b3) with LMTPA;
>         Thu, 04 Dec 2008 19:39:50 +0100
> X-Sieve: CMU Sieve 2.2
> Received: from unknown (unknown [127.0.0.1])
>        by foo.org (Postfix) with SMTP id 2EE4DEEFB3A
>        for <user+spam@xxxxxxx>; Thu,  4 Dec 2008 19:38:54 +0100 (CET)
> Message-Id: <20081204183941.2EE4DEEFB3A@xxxxxxx>
> Date: Thu,  4 Dec 2008 19:38:54 +0100 (CET)
> From: to_port10025@xxxxxxxxxx
> To: undisclosed-recipients:;
>
> blah
> </snip>
>
> testing with
>
> sendmail -bv user+spam@xxxxxxx
>
> as mentioned in http://www.postfix.org/ADDRESS_REWRITING_README.html
> gives, the following.
> <snip>
> Return-Path: <>
> Received: from foo.org ([unix socket])
>         by foo.org (Cyrus v2.2.13-Debian-2.2.13-14+b3) with LMTPA;
>         Thu, 04 Dec 2008 22:56:08 +0100
> X-Sieve: CMU Sieve 2.2
> Received: by foo.org (Postfix)
>        id 49719EF4D11; Thu,  4 Dec 2008 22:56:08 +0100 (CET)
> Date: Thu,  4 Dec 2008 22:56:08 +0100 (CET)
> From: MAILER-DAEMON@xxxxxxx (Mail Delivery System)
> Subject: Mail Delivery Status Report
> To: polyformal@xxxxxxx
> Auto-Submitted: auto-replied
> MIME-Version: 1.0
> Content-Type: multipart/report; report-type=delivery-status;
>        boundary="3B1BDEF4D13.1228427768/foo.org"
> Message-Id: <20081204215608.49719EF4D11@xxxxxxx>
>
> This is a MIME-encapsulated message.
>
> - --3B1BDEF4D13.1228427768/foo.org
> Content-Description: Notification
> Content-Type: text/plain; charset=us-ascii
>
> This is the mail system at host foo.org.
>
> Enclosed is the mail delivery report that you requested.
>
>                   The mail system
>
> <user@xxxxxxx> (expanded from
>    <user+spam@xxxxxxx>): delivery via
>    foo.org[/var/run/cyrus/socket/lmtp]: 250 2.1.5 ok
>
> - --3B1BDEF4D13.1228427768/foo.org
> Content-Description: Delivery report
> Content-Type: message/delivery-status
>
> Reporting-MTA: dns; foo.org
> X-Postfix-Queue-ID: 3B1BDEF4D13
> X-Postfix-Sender: rfc822; polyformal@xxxxxxx
> Arrival-Date: Thu,  4 Dec 2008 22:56:08 +0100 (CET)
>
> Final-Recipient: rfc822; user@xxxxxxx
> Original-Recipient: rfc822; user+spam@xxxxxxx
> Action: deliverable
> Status: 2.1.5
> Remote-MTA: dns; foo.org
> Diagnostic-Code: smtp; 250 2.1.5 ok
>
> - --3B1BDEF4D13.1228427768/foo.org
> Content-Description: Message Headers
> Content-Type: text/rfc822-headers
>
> Received: by foo.org (Postfix, from userid 1999)
>        id 3B1BDEF4D13; Thu,  4 Dec 2008 22:56:08 +0100 (CET)
> From: polyformal@xxxxxxx
> Subject: probe
> To:
>        user+spam@xxxxxxx
> Message-Id: <20081204215608.3B1BDEF4D13@xxxxxxx>
> Date: Thu,  4 Dec 2008 22:56:08 +0100 (CET)
>
> - --3B1BDEF4D13.1228427768/foo.org--
>
> </snip>
>
> some relevant info of my main.cf
> <snip>
>
> myhostname = foo.org
> mydomain = foo.org
> mydestination = localdomain, localhost, localhost.localdomain, localhost
> myorigin = foo.org
> alias_maps = hash:/etc/aliases
>
> recipient_delimiter = +
>
> parent_domain_matches_subdomains=
>
> #disable_dns_lookups = yes
>
> virtual_transport=lmtp:unix:/var/run/cyrus/socket/lmtp
> virtual_alias_domains =
> virtual_mailbox_domains = ldap:/etc/postfix/ldap-virtual_mailbox_domains.cf
> virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual_mailbox_maps.cf
> virtual_alias_maps = ldap:/etc/postfix/ldap-virtual_alias_maps.cf
>
> alias_database = hash:/etc/aliases
> relayhost =
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> mailbox_size_limit = 0
> inet_interfaces = all
> inet_protocols = ipv4
>
> relay_domains =
> smtpd_sasl_auth_enable=yes
> smtpd_sasl_local_domain=
> smtpd_sasl_security_options=noanonymous
> smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated
> smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject_unauth_destination
>
> content_filter = amavisfeed:127.0.0.1:10024
>
> </snip>
>
>
>>> Does it mean amavis and postfix use LMTP protocol ?  This is unusual !
>>> (but this is not the probleme)
>
> just for info: even to me the lmtp transport to amavis was a new feature
> i read in the /usr/share/doc/amavisd-new/README.posfix.gz (Debian Lenny
> amavis
> 1:2.6.1.dfsg-1) so i tried this setup instead of tcp. Time doesn't stand
> still ;)
> But as you said, it is not the problem.
>
>> amavisd-new by default does not have plus addressing enabled.  Add or
>> uncomment this line to amavisd.conf and reload it:
>> $recipient_delimiter = '+';
>
> This is enbled in amavis.
>
> Thank you and best regards
>
> Stefan Pampel
>
> --
> / polyformal                /
> | http://www.polyformal.de /
> |_________________________/
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux