Fwd: Plus addressing on Sentora using Postfix
I am running Ubuntu 14.04.4 LTS “Trusty” and "postconf -d | grep mail_version” gives me “mail_version = 2.11.0”, with Dovecot 2.2.9
I have installed Sentora (http://sentora.org) which sets most of the configuration up for Postfix up, I have made some changes to allow me to use certificates for IMAP and SMTP SSL (https://skippy.org.uk/lets-encrypt-postfix-and-dovecot/),
My Postfix main config file is http://pastebin.com/hdxdNK4d My Postfix master process configuration file is http://pastebin.com/YuCTq0JQ Dovecot -n gives me the following http://pastebin.com/05xixDtD
I am trying to send an email to site@skippy.org.uk and site+test@skippy.org.uk (sending from an iCloud account), it works to site@skippy.org.uk (site@skippy.org.uk is a real email address), the lines from mail.log are as follows:
Mar 11 17:48:07 njoror postfix/smtpd[32706]: connect from mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:48:07 njoror postfix/smtpd[32706]: Anonymous TLS connection established from mr11p26im-asmtp004.me.com[17.110.86.109]: TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits) Mar 11 17:48:08 njoror postfix/smtpd[32706]: 1BAF055AB6: client=mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:48:08 njoror postfix/cleanup[32710]: 1BAF055AB6: message-id=90594925-C294-4A38-8275-C23DA55A9308@icloud.com Mar 11 17:48:08 njoror postfix/qmgr[32599]: 1BAF055AB6: from=philipmcgaw@icloud.com, size=1513, nrcpt=1 (queue active) Mar 11 17:48:08 njoror postfix/pipe[32605]: 1BAF055AB6: to=site+test@skippy.org.uk, relay=dovecot, delay=0.43, delays=0.34/0.01/0/0.09, dsn=4.1.1, status=SOFTBOUNCE (user unknown) Mar 11 17:48:08 njoror postfix/smtpd[32706]: disconnect from mr11p26im-asmtp004.me.com[17.110.86.109]
vs
Mar 11 17:49:23 njoror postfix/smtpd[32706]: connect from mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:49:23 njoror postfix/smtpd[32706]: Anonymous TLS connection established from mr11p26im-asmtp004.me.com[17.110.86.109]: TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits) Mar 11 17:49:24 njoror postfix/smtpd[32706]: 33D2355AB9: client=mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:49:24 njoror postfix/cleanup[32710]: 33D2355AB9: message-id=2456DC97-4E3A-4A91-B3A0-CAFE056F116F@icloud.com Mar 11 17:49:24 njoror postfix/qmgr[32599]: 33D2355AB9: from=philipmcgaw@icloud.com, size=1249, nrcpt=1 (queue active) Mar 11 17:49:25 njoror postfix/smtpd[32706]: disconnect from mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:49:26 njoror postfix/pipe[32605]: 33D2355AB9: to=site@skippy.org.uk, relay=dovecot, delay=1.8, delays=0.63/0/0/1.2, dsn=2.0.0, status=sent (delivered via dovecot service) Mar 11 17:49:26 njoror postfix/qmgr[32599]: 33D2355AB9: removed
Looking at the lines from mail.log it looks like it thinks there should be a user called site+test@skippy.org.uk, this has been puzzling me for a while, I was wondering if any one on here could see what was wrong, and what I needed to change, Looking at a few examples and online guides I thought I had covered all the bases.
Looking at the log it looks like the message is either succeeding, or failing via Dovecot
Mar 11 17:48:08 njoror postfix/pipe[32605]: 1BAF055AB6: to=site+test@skippy.org.uk, relay=dovecot, delay=0.43, delays=0.34/0.01/0/0.09, dsn=4.1.1, status=SOFTBOUNCE (user unknown)
Does any one have any ideas?
Am 9. April 2016 01:25:51 MESZ, schrieb Philip McGaw philip@mcgaw.eu:
I am running Ubuntu 14.04.4 LTS “Trusty” and "postconf -d | grep mail_version” gives me “mail_version = 2.11.0”, with Dovecot 2.2.9
I have installed Sentora (http://sentora.org) which sets most of the configuration up for Postfix up, I have made some changes to allow me to use certificates for IMAP and SMTP SSL (https://skippy.org.uk/lets-encrypt-postfix-and-dovecot/),
My Postfix main config file is http://pastebin.com/hdxdNK4d My Postfix master process configuration file is http://pastebin.com/YuCTq0JQ Dovecot -n gives me the following http://pastebin.com/05xixDtD
I am trying to send an email to site@skippy.org.uk and site+test@skippy.org.uk (sending from an iCloud account), it works to site@skippy.org.uk (site@skippy.org.uk is a real email address), the lines from mail.log are as follows:
Mar 11 17:48:07 njoror postfix/smtpd[32706]: connect from mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:48:07 njoror postfix/smtpd[32706]: Anonymous TLS connection established from mr11p26im-asmtp004.me.com[17.110.86.109]: TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits) Mar 11 17:48:08 njoror postfix/smtpd[32706]: 1BAF055AB6: client=mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:48:08 njoror postfix/cleanup[32710]: 1BAF055AB6: message-id=90594925-C294-4A38-8275-C23DA55A9308@icloud.com Mar 11 17:48:08 njoror postfix/qmgr[32599]: 1BAF055AB6: from=philipmcgaw@icloud.com, size=1513, nrcpt=1 (queue active) Mar 11 17:48:08 njoror postfix/pipe[32605]: 1BAF055AB6: to=site+test@skippy.org.uk, relay=dovecot, delay=0.43, delays=0.34/0.01/0/0.09, dsn=4.1.1, status=SOFTBOUNCE (user unknown) Mar 11 17:48:08 njoror postfix/smtpd[32706]: disconnect from mr11p26im-asmtp004.me.com[17.110.86.109]
vs
Mar 11 17:49:23 njoror postfix/smtpd[32706]: connect from mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:49:23 njoror postfix/smtpd[32706]: Anonymous TLS connection established from mr11p26im-asmtp004.me.com[17.110.86.109]: TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits) Mar 11 17:49:24 njoror postfix/smtpd[32706]: 33D2355AB9: client=mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:49:24 njoror postfix/cleanup[32710]: 33D2355AB9: message-id=2456DC97-4E3A-4A91-B3A0-CAFE056F116F@icloud.com Mar 11 17:49:24 njoror postfix/qmgr[32599]: 33D2355AB9: from=philipmcgaw@icloud.com, size=1249, nrcpt=1 (queue active) Mar 11 17:49:25 njoror postfix/smtpd[32706]: disconnect from mr11p26im-asmtp004.me.com[17.110.86.109] Mar 11 17:49:26 njoror postfix/pipe[32605]: 33D2355AB9: to=site@skippy.org.uk, relay=dovecot, delay=1.8, delays=0.63/0/0/1.2, dsn=2.0.0, status=sent (delivered via dovecot service) Mar 11 17:49:26 njoror postfix/qmgr[32599]: 33D2355AB9: removed
Looking at the lines from mail.log it looks like it thinks there should be a user called site+test@skippy.org.uk, this has been puzzling me for a while, I was wondering if any one on here could see what was wrong, and what I needed to change, Looking at a few examples and online guides I thought I had covered all the bases.
Looking at the log it looks like the message is either succeeding, or failing via Dovecot
Mar 11 17:48:08 njoror postfix/pipe[32605]: 1BAF055AB6: to=site+test@skippy.org.uk, relay=dovecot, delay=0.43, delays=0.34/0.01/0/0.09, dsn=4.1.1, status=SOFTBOUNCE (user unknown)
Does any one have any ideas? In dovecots 15-lda.conf uncomment the "recipient_delimiter = +" setting. The delimiter is configured in postfix but apparently not in your dovecot lda config
-- Christian
In dovecots 15-lda.conf uncomment the "recipient_delimiter = +" setting. The delimiter is configured in postfix but apparently not in your dovecot lda config
I am not sure of the location of 15-lda.conf, however in my main dovecot.conf file I added "recipient_delimiter = +"
The output of the lad part of "dovecot -n" is now
protocol lda {
mail_plugins = quota sieve
postmaster_address = postmaster@njoror.squashedfly.eu
recipient_delimiter = +
}
However my mail.log file still shows every message is bounced with the following
Apr 10 23:53:23 njoror postfix/smtpd[23320]: connect from mr11p26im-asmtp004.me.com[17.110.86.109] Apr 10 23:53:24 njoror postfix/smtpd[23320]: Anonymous TLS connection established from mr11p26im-asmtp004.me.com[17.110.86.109]: TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits) Apr 10 23:53:24 njoror postfix/smtpd[23320]: 6D44955ADC: client=mr11p26im-asmtp004.me.com[17.110.86.109] Apr 10 23:53:24 njoror postfix/cleanup[23435]: 6D44955ADC: message-id=1D905D9B-99E0-4156-A652-51D1A9BD96D0@icloud.com Apr 10 23:53:24 njoror postfix/qmgr[13937]: 6D44955ADC: from=philipmcgaw@icloud.com, size=2021, nrcpt=1 (queue active) Apr 10 23:53:24 njoror postfix/pipe[23436]: 6D44955ADC: to=site+gah@skippy.org.uk, relay=dovecot, delay=0.43, delays=0.34/0.01/0/0.08, dsn=4.1.1, status=SOFTBOUNCE (user unknown) Apr 10 23:53:25 njoror postfix/smtpd[23320]: disconnect from mr11p26im-asmtp004.me.com[17.110.86.109]
Any ideas on why this is still not working for me, as its now driving me right up the wall :(
On 2016-04-11 00:54, Philip McGaw wrote:
In dovecots 15-lda.conf uncomment the "recipient_delimiter = +" setting. The delimiter is configured in postfix but apparently not in your dovecot lda config
I am not sure of the location of 15-lda.conf, however in my main dovecot.conf file I added "recipient_delimiter = +"
The output of the lad part of "dovecot -n" is now
protocol lda {
mail_plugins = quota sieve
postmaster_address = postmaster@njoror.squashedfly.eu
recipient_delimiter = +
}
Ok, nevermind. I suspect that sentora creates it's own config files from whatever you configure.
However my mail.log file still shows every message is bounced with the following
Apr 10 23:53:23 njoror postfix/smtpd[23320]: connect from mr11p26im-asmtp004.me.com[17.110.86.109] Apr 10 23:53:24 njoror postfix/smtpd[23320]: Anonymous TLS connection established from mr11p26im-asmtp004.me.com[17.110.86.109]: TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits) Apr 10 23:53:24 njoror postfix/smtpd[23320]: 6D44955ADC: client=mr11p26im-asmtp004.me.com[17.110.86.109] Apr 10 23:53:24 njoror postfix/cleanup[23435]: 6D44955ADC: message-id=1D905D9B-99E0-4156-A652-51D1A9BD96D0@icloud.com Apr 10 23:53:24 njoror postfix/qmgr[13937]: 6D44955ADC: from=philipmcgaw@icloud.com, size=2021, nrcpt=1 (queue active) Apr 10 23:53:24 njoror postfix/pipe[23436]: 6D44955ADC: to=site+gah@skippy.org.uk, relay=dovecot, delay=0.43, delays=0.34/0.01/0/0.08, dsn=4.1.1, status=SOFTBOUNCE (user unknown) Apr 10 23:53:25 njoror postfix/smtpd[23320]: disconnect from mr11p26im-asmtp004.me.com[17.110.86.109]
Any ideas on why this is still not working for me, as its now driving me right up the wall :(
What's in your dovecot log? It should log something and maybe give a hint on whats wrong.
Also take a look at the LDA wiki page http://wiki2.dovecot.org/LDA
-- Christian Kivalo
Dovecot.log Dovecot-info.log Dovecot-debug.log
Are all devoid of information, the only log that seems to give anything is mail.log
I edited the working dovecot config file to add in recipient_delimiter = + line. And it shows up when running Dovecot -n.
Sent from my iPhone
On 11 Apr 2016, at 08:15, Christian Kivalo ml+dovecot@valo.at wrote:
On 2016-04-11 00:54, Philip McGaw wrote:
In dovecots 15-lda.conf uncomment the "recipient_delimiter = +" setting. The delimiter is configured in postfix but apparently not in your dovecot lda config I am not sure of the location of 15-lda.conf, however in my main dovecot.conf file I added "recipient_delimiter = +" The output of the lad part of "dovecot -n" is now protocol lda { mail_plugins = quota sieve postmaster_address = postmaster@njoror.squashedfly.eu recipient_delimiter = + }
Ok, nevermind. I suspect that sentora creates it's own config files from whatever you configure.
However my mail.log file still shows every message is bounced with the following
Apr 10 23:53:23 njoror postfix/smtpd[23320]: connect from mr11p26im-asmtp004.me.com[17.110.86.109] Apr 10 23:53:24 njoror postfix/smtpd[23320]: Anonymous TLS connection established from mr11p26im-asmtp004.me.com[17.110.86.109]: TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits) Apr 10 23:53:24 njoror postfix/smtpd[23320]: 6D44955ADC: client=mr11p26im-asmtp004.me.com[17.110.86.109] Apr 10 23:53:24 njoror postfix/cleanup[23435]: 6D44955ADC: message-id=1D905D9B-99E0-4156-A652-51D1A9BD96D0@icloud.com Apr 10 23:53:24 njoror postfix/qmgr[13937]: 6D44955ADC: from=philipmcgaw@icloud.com, size=2021, nrcpt=1 (queue active) Apr 10 23:53:24 njoror postfix/pipe[23436]: 6D44955ADC: to=site+gah@skippy.org.uk, relay=dovecot, delay=0.43, delays=0.34/0.01/0/0.08, dsn=4.1.1, status=SOFTBOUNCE (user unknown) Apr 10 23:53:25 njoror postfix/smtpd[23320]: disconnect from mr11p26im-asmtp004.me.com[17.110.86.109] Any ideas on why this is still not working for me, as its now driving me right up the wall :(
What's in your dovecot log? It should log something and maybe give a hint on whats wrong.
Also take a look at the LDA wiki page http://wiki2.dovecot.org/LDA
-- Christian Kivalo
On 2016-04-12 14:56, Philip McGaw wrote:
Dovecot.log Dovecot-info.log Dovecot-debug.log
Are all devoid of information, the only log that seems to give anything is mail.log Maybe you need to change some logging settings in dovecot, see http://wiki2.dovecot.org/Logging
Is there some mail_debug = yes in your config? The sentora dovecot.conf from github has it set, maybe the setting was changed to no?
Some logging showing the failure would be helpful.
I edited the working dovecot config file to add in recipient_delimiter = + line. And it shows up when running Dovecot -n.
Sent from my iPhone
On 11 Apr 2016, at 08:15, Christian Kivalo ml+dovecot@valo.at wrote:
On 2016-04-11 00:54, Philip McGaw wrote:
In dovecots 15-lda.conf uncomment the "recipient_delimiter = +" setting. The delimiter is configured in postfix but apparently not in your dovecot lda config I am not sure of the location of 15-lda.conf, however in my main dovecot.conf file I added "recipient_delimiter = +" The output of the lad part of "dovecot -n" is now protocol lda { mail_plugins = quota sieve postmaster_address = postmaster@njoror.squashedfly.eu recipient_delimiter = + }
Ok, nevermind. I suspect that sentora creates it's own config files from whatever you configure.
However my mail.log file still shows every message is bounced with the following
Apr 10 23:53:23 njoror postfix/smtpd[23320]: connect from mr11p26im-asmtp004.me.com[17.110.86.109] Apr 10 23:53:24 njoror postfix/smtpd[23320]: Anonymous TLS connection established from mr11p26im-asmtp004.me.com[17.110.86.109]: TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits) Apr 10 23:53:24 njoror postfix/smtpd[23320]: 6D44955ADC: client=mr11p26im-asmtp004.me.com[17.110.86.109] Apr 10 23:53:24 njoror postfix/cleanup[23435]: 6D44955ADC: message-id=1D905D9B-99E0-4156-A652-51D1A9BD96D0@icloud.com Apr 10 23:53:24 njoror postfix/qmgr[13937]: 6D44955ADC: from=philipmcgaw@icloud.com, size=2021, nrcpt=1 (queue active) Apr 10 23:53:24 njoror postfix/pipe[23436]: 6D44955ADC: to=site+gah@skippy.org.uk, relay=dovecot, delay=0.43, delays=0.34/0.01/0/0.08, dsn=4.1.1, status=SOFTBOUNCE (user unknown) Apr 10 23:53:25 njoror postfix/smtpd[23320]: disconnect from mr11p26im-asmtp004.me.com[17.110.86.109] Any ideas on why this is still not working for me, as its now driving me right up the wall :(
What's in your dovecot log? It should log something and maybe give a hint on whats wrong.
Also take a look at the LDA wiki page http://wiki2.dovecot.org/LDA
-- Christian Kivalo
-- Christian Kivalo
On 2016-04-12 14:56, Philip McGaw wrote:
Dovecot.log Dovecot-info.log Dovecot-debug.log
Are all devoid of information, the only log that seems to give anything is mail.log
I edited the working dovecot config file to add in recipient_delimiter = + line. And it shows up when running Dovecot -n.
You did restart dovecot after that change? The changed setting is shown by doveconf -n even if you don't restart dovecot.
I just tried that here, the only difference is i'm using LMTP for delivery from postfix to dovecot.
As long as i have "recipient_delimiter = +" everything is ok and test mails are delivered from postfix to dovecot:
Postfix log: root@uschi:~ # grep 540B5100273 /var/log/mail.log Apr 12 22:14:34 uschi postfix/dspam-return/smtpd[24932]: 540B5100273: client=localhost[127.0.0.1] Apr 12 22:14:58 uschi postfix/cleanup[24938]: 540B5100273: message-id=20160412201434.540B5100273@uschi.sec-svcs.eu Apr 12 22:14:58 uschi postfix/qmgr[29255]: 540B5100273: from=postmaster@AAAA.AA, size=384, nrcpt=1 (queue active) Apr 12 22:14:58 uschi postfix/lmtp[24940]: 540B5100273: to=USER+test@AAAA.AA, relay=uschi.sec-svcs.eu[private/dovecot-lmtp], delay=31, delays=31/0/0.01/0.02, dsn=2.0.0, status=sent (250 2.0.0 USER+test@AAAA.AA JX+LFEJXDVdtYQAAo97fFA Saved) Apr 12 22:14:58 uschi postfix/qmgr[29255]: 540B5100273: removed
Dovecot log: root@uschi:~ # grep JX+LFEJXDVdtYQAAo97fFA /var/log/dovecot.log Apr 12 22:14:58 uschi dovecot: lmtp(USER@AAAA.AA): JX+LFEJXDVdtYQAAo97fFA: sieve: msgid=20160412201434.540B5100273@uschi.sec-svcs.eu, from=postmaster@AAAA.AA, envelope from=postmaster@AAAA.AA, envelope to=USER+test@AAAA.AA, delivery time=14ms, lmtp session time=10ms, status=stored mail into mailbox 'INBOX'
When i set "recipient_delimiter =" and restart dovecot the test mail is not delivered to dovecot:
Postfix log root@uschi:~ # grep 811E3100273 /var/log/mail.log Apr 12 22:30:17 uschi postfix/dspam-return/smtpd[26033]: 811E3100273: client=localhost[127.0.0.1] Apr 12 22:30:43 uschi postfix/cleanup[26048]: 811E3100273: message-id=20160412203017.811E3100273@uschi.sec-svcs.eu Apr 12 22:30:43 uschi postfix/qmgr[29255]: 811E3100273: from=postmaster@AAAA.AA, size=384, nrcpt=1 (queue active) Apr 12 22:30:43 uschi postfix/lmtp[26051]: 811E3100273: to=USER+test@AAAA.AA, relay=uschi.sec-svcs.eu[private/dovecot-lmtp], delay=34, delays=34/0/0.01/0.01, dsn=5.1.1, status=bounced (host uschi.sec-svcs.eu[private/dovecot-lmtp] said: 550 5.1.1 USER+test@AAAA.AA User doesn't exist: USER+test@AAAA.AA (in reply to RCPT TO command)) Apr 12 22:30:43 uschi postfix/bounce[26054]: 811E3100273: sender non-delivery notification: 5C24E1002DA Apr 12 22:30:43 uschi postfix/bounce[26054]: 811E3100273: postmaster non-delivery notification: 5CE34100310 Apr 12 22:30:43 uschi postfix/qmgr[29255]: 811E3100273: removed
i add the "+" back to the recipient_delimiter setting, restart dovecot and everything is back to normal...
-- Christian Kivalo
participants (2)
-
Christian Kivalo
-
Philip McGaw