Discussion:
postfix not delivering mail to user
(too old to reply)
Bob
2016-07-18 17:21:42 UTC
Permalink
I am using Ubuntu 16, postfix, dovecot and mailman. I can send mail, but
for some reason, I cannot receive mail. When I try to send to my address
from an gmail account, I get an "undeliverable" message which states
that my user is unknown. Since the user is the one I use all the time,
and there is a MailDir in my home directory, I don't understand the
problem. My mail log from when I tried sending from my user on my server
and when Thunderbird logged into my user is below

/var/log/mail.log
Jul 18 10:55:21 server postfix/submission/smtpd[10297]: connect from
www.faithwalk.ca[24.72.66.135]
Jul 18 10:55:21 server postfix/submission/smtpd[10297]: Anonymous TLS
connection established from www.faithwalk.ca[24.72.66.135]: TLSv1.2
with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
client=www.faithwalk.ca[24.72.66.135], sasl_method=PLAIN,
sasl_username=bob
Jul 18 10:55:22 server postfix/submission/smtpd[10297]: disconnect
from www.faithwalk.ca[24.72.66.135] ehlo=2 starttls=1 auth=1 mail=1
rcpt=1 data=1 quit=1 commands=8
relay=gmail-smtp-in.l.google.com[74.125.199.26]:25, delay=1.3,
delays=0.05/0.16/0.61/0.52, dsn=2.0.0, status=sent (250 2.0.0 OK
1468860923 y67si4331367pfy.250 - gsmtp)
Jul 18 10:55:23 server postfix/qmgr[24473]: 0F83A1280024: removed
and
Jul 18 10:55:54 server dovecot: pop3-login: Login: user=<bob>,
method=PLAIN, rip=24.72.86.239, lip=24.72.66.135, mpid=10317, TLS,
session=<br9u1+s3o+0YSFbv>
Jul 18 10:55:54 server dovecot: pop3(bob): Disconnected: Logged out
top=0/0, retr=0/0, del=0/0, size=0
Jul 18 10:57:15 server dovecot: pop3-login: Login: user=<bob>,
method=PLAIN, rip=24.72.86.239, lip=24.72.66.135, mpid=10331, TLS,
session=<+fFB3Os3V/4YSFbv>
Jul 18 10:57:29 server dovecot: pop3(bob): Disconnected: Logged out
top=0/0, retr=0/0, del=0/0, size=0
error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request
Jul 18 10:57:40 server dovecot: pop3-login: Disconnected (no auth
attempts in 5 secs): user=<>, rip=208.100.26.231, lip=24.72.66.135,
TLS handshaking: SSL_accept() failed: Unknown error,
session=<Taa+3es3Vr7QZBrn>
Jul 18 10:58:42 server postfix/anvil[10300]: statistics: max
connection rate 1/60s for (submission:24.72.66.135) at Jul 18 10:55:21
Jul 18 10:58:42 server postfix/anvil[10300]: statistics: max
connection count 1 for (submission:24.72.66.135) at Jul 18 10:55:21
Jul 18 10:58:42 server postfix/anvil[10300]: statistics: max cache
size 1 at Jul 18 10:55:21
Jul 18 11:04:09 server dovecot: pop3-login: Login: user=<bob>,
method=PLAIN, rip=127.0.0.1, lip=127.0.1.1, mpid=10437, TLS,
session=<qCjl9Os3WJZ/AAAB>
Jul 18 11:04:09 server dovecot: pop3(bob): Disconnected: Logged out
top=0/0, retr=0/0, del=0/0, size=0
and this is from an email I tried to send using an email verification site.
Jul 18 10:23:17 server postfix/smtpd[9627]: connect from
mail.paolapacheo.qz301.com[185.31.205.11]
client=mail.paolapacheo.qz301.com[185.31.205.11]
Jul 18 10:23:18 server postfix/smtpd[9627]: 17166128002A: reject: RCPT
from mail.paolapacheo.qz301.com[185.31.205.11]: 550 5.1.1
ddress rejected: User unknown in local recipient table;
l.paolapacheo.qz301.com>
Jul 18 10:23:18 server postfix/smtpd[9627]: disconnect from
mail.paolapacheo.qz301.com[185.31.205.11] helo=1 mail=1 rcpt=1/2
quit=1 commands=4/5
Jul 18 10:23:28 server postfix/anvil[9471]: statistics: max connection
rate 1/60s for (smtp:209.85.218.46) at Jul 18 10:13:28
Jul 18 10:23:28 server postfix/anvil[9471]: statistics: max connection
count 1 for (smtp:209.85.218.46) at Jul 18 10:13:28
Jul 18 10:23:28 server postfix/anvil[9471]: statistics: max cache size
1 at Jul 18 10:13:28
Jul 1
and when I try to send mail insystem from bob to bob, the mail bounces
Jul 18 11:15:26 server postfix/submission/smtpd[10653]: connect from
www.faithwalk.ca[24.72.66.135]
Jul 18 11:15:26 server postfix/submission/smtpd[10653]: Anonymous TLS
connection established from www.faithwalk.ca[24.72.66.135]: TLSv1.2
with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
client=www.faithwalk.ca[24.72.66.135], sasl_method=PLAIN,
sasl_username=bob
Jul 18 11:15:26 server postfix/submission/smtpd[10653]: disconnect
from www.faithwalk.ca[24.72.66.135] ehlo=2 starttls=1 auth=1 mail=1
rcpt=1 data=1 quit=1 commands=8
delays=0.06/0.01/0/0.25, dsn=5.1.1, status=bounced (user unknown)
Jul 18 11:15:26 server postfix/bounce[10660]: 4EF3B1280077: sender
non-delivery notification: 99BD81280C86
here is my home directory listing for Maildir
drwx------ 5 bob bob 4096 Jul 11 02:25 Maildir/
Any help would be greatly appreciated

Bob
Matthew McGehrin
2016-07-18 17:34:06 UTC
Permalink
Hello.

What are you using for local delivery in main.cf? virtual or procmail?

Usually, I add a domain to relay_domains and virtual
relay_domains = /etc/postfix/relay_domains
virtual_maps = hash:/etc/postfix/virtual
alias_database = hash:/etc/aliases

And then have an associated entry in /etc/postfix/virtual as well:
@mydomain.com @localhost

And confirm that your mail_spool path is configured correctly as well:

mail_spool_directory = /var/mail
Post by Bob
I am using Ubuntu 16, postfix, dovecot and mailman. I can send mail,
but for some reason, I cannot receive mail. When I try to send to my
address from an gmail account, I get an "undeliverable" message which
states that my user is unknown. Since the user is the one I use all
the time, and there is a MailDir in my home directory, I don't
understand the problem. My mail log from when I tried sending from my
user on my server and when Thunderbird logged into my user is below
/dev/rob0
2016-07-18 23:50:41 UTC
Permalink
Post by Matthew McGehrin
What are you using for local delivery in main.cf? virtual or
procmail?
This makes no sense. virtual(8) delivery is by definition not
"local(8)". And procmail (an unmaintained piece of software) is not
required, never was.
Post by Matthew McGehrin
Usually, I add a domain to relay_domains and virtual
relay_domains = /etc/postfix/relay_domains
This is not what relay_domains is for.
Post by Matthew McGehrin
virtual_maps = hash:/etc/postfix/virtual
The virtual_maps setting has been deprecated for a VERY long time.
Please don't advise people in 2016 to use it.
Post by Matthew McGehrin
alias_database = hash:/etc/aliases
That's a default, and irrelevant for relay and virtual ( alias |
mailbox ) domains.
Post by Matthew McGehrin
@mydomain.com @localhost
Yikes. Catchalls are very bad, and that syntax is wrong anyway.
Post by Matthew McGehrin
mail_spool_directory = /var/mail
Again irrelevant.

Bob, please disregard all of that post.
Post by Matthew McGehrin
Post by Bob
I am using Ubuntu 16, postfix, dovecot and mailman. I can send
mail, but for some reason, I cannot receive mail. When I try to
send to my address from an gmail account, I get an "undeliverable"
message which states that my user is unknown. Since the user is
the one I use all the time, and there is a MailDir in my home
directory, I don't understand the problem. My mail log from when I
tried sending from my user on my server and when Thunderbird
logged into my user is below
/var/log/mail.log
Post by Matthew McGehrin
Jul 18 10:55:21 server postfix/submission/smtpd[10297]: connect
from www.faithwalk.ca[24.72.66.135]
Jul 18 10:55:21 server postfix/submission/smtpd[10297]: Anonymous
TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
0F83A1280024: client=www.faithwalk.ca[24.72.66.135],
sasl_method=PLAIN, sasl_username=bob
Jul 18 10:55:22 server postfix/submission/smtpd[10297]: disconnect
from www.faithwalk.ca[24.72.66.135] ehlo=2 starttls=1 auth=1 mail=1
rcpt=1 data=1 quit=1 commands=8
relay=gmail-smtp-in.l.google.com[74.125.199.26]:25, delay=1.3,
delays=0.05/0.16/0.61/0.52, dsn=2.0.0, status=sent (250 2.0.0 OK
1468860923 y67si4331367pfy.250 - gsmtp)
Jul 18 10:55:23 server postfix/qmgr[24473]: 0F83A1280024: removed
That's a successful submission and relay outbound.

and
Post by Matthew McGehrin
Jul 18 10:55:54 server dovecot: pop3-login: Login: user=<bob>,
method=PLAIN, rip=24.72.86.239, lip=24.72.66.135, mpid=10317, TLS,
session=<br9u1+s3o+0YSFbv>
POP3 was outdated before the millennium. Also, Dovecot logs are
[mostly] not relevant here.
Post by Matthew McGehrin
and this is from an email I tried to send using an email
verification site.
Jul 18 10:23:17 server postfix/smtpd[9627]: connect from
mail.paolapacheo.qz301.com[185.31.205.11] Jul 18 10:23:18 server
client=mail.paolapacheo.qz301.com[185.31.205.11] Jul 18 10:23:18
server postfix/smtpd[9627]: 17166128002A: reject: RCPT from
mail.paolapacheo.qz301.com[185.31.205.11]: 550 5.1.1
unknown in local recipient table;
helo=<mail.paolapacheo.qz301.com>
"Faithwalk.ca" is in your $mydestination, but "omquqzat1gw" is not a
valid system user or alias. Was this unexpected? Should that
address exist?
Post by Matthew McGehrin
and when I try to send mail insystem from bob to bob, the mail
bounces
Jul 18 11:15:26 server postfix/submission/smtpd[10653]: connect
from www.faithwalk.ca[24.72.66.135]
Jul 18 11:15:26 server postfix/submission/smtpd[10653]: Anonymous
TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
4EF3B1280077: client=www.faithwalk.ca[24.72.66.135],
sasl_method=PLAIN, sasl_username=bob
Jul 18 11:15:26 server postfix/submission/smtpd[10653]: disconnect
from www.faithwalk.ca[24.72.66.135] ehlo=2 starttls=1 auth=1 mail=1
rcpt=1 data=1 quit=1 commands=8
The mail was accepted from the client, but ...
Post by Matthew McGehrin
delays=0.06/0.01/0/0.25, dsn=5.1.1, status=bounced (user unknown)
... For some reason you have sent this address to a pipe(8)
transport(5) which is called "mailman".

That part was not explained, and the configuration information as
described in DEBUG_README.html#mail was not provided.
--
http://rob0.nodns4.us/
Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
Continue reading on narkive:
Loading...