[Dovecot] passwd(contact@akairnet.com, 91.121.76.71): unknown user
I have a probleme with my configuration of dovecot I think. I have no problem for send a email but I don't want receive a email. In my /var/log/mail.log I have :
Quote:
connect from mail-ww0-f45.google.com[74.125.82.45]
Aug 11 14:21:58 ns351550 postfix/smtpd[1844]: NOQUEUE: reject: RCPT from
mail-ww0-f45.google.com[74.125.82.45]: 550 5.1.1 contact@akairnet.com:
Recipient address rejected: User unknown in local recipient table;
from=fwdavy@gmail.com to=contact@akairnet.com proto=ESMTP
helo=
Log dovecot :
dovecot: 2010-08-11 17:53:14 Info: auth(default): client in: AUTH 1
PLAIN service=IMAP secured lip=91.121.76.71 rip=91.121.76.71
resp=AGNvbnRhY3RAYWthaXJuZXQuY29tAFgyMmRiNzgh
dovecot: 2010-08-11 17:53:14 Info: auth-worker(default):
sql(contact@akairnet.com,91.121.76.71): query: SELECT CONCAT(user.user, '@',
domains.name) AS user,user.password FROM user,domains WHERE
user.domain_id=domains.id AND CONCAT(user.user, '@',
domains.name)='contact@akairnet.com'
dovecot: 2010-08-11 17:53:14 Info: auth(default): client out: OK 1
user=contact@akairnet.com
dovecot: 2010-08-11 17:53:14 Info: auth(default): master in: REQUEST 1
13716 1
dovecot: 2010-08-11 17:53:14 Info: auth(default):
passwd(contact@akairnet.com,91.121.76.71): lookup
dovecot: 2010-08-11 17:53:14 Info: auth(default):
passwd(contact@akairnet.com,91.121.76.71): unknown user
dovecot: 2010-08-11 17:53:14 Info: auth(default): master out: USER 1
contact@akairnet.com uid=5000 gid=5000
home=/home/var/vmail/akairnet.com/contact
dovecot: 2010-08-11 17:53:14 Info: imap-login: Login:
user=contact@akairnet.com, method=PLAIN, rip=91.121.76.71,
lip=91.121.76.71, secured
dovecot: 2010-08-11 17:53:14 Info: IMAP(contact@akairnet.com): Disconnected:
Logged out
Quote: Recipient address rejected: User unknown in local recipient table In my main.cf I have :
Quote: # See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no
# appending .domain is the MUA's job. append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h
readme_directory = no
# TLS parameters smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem smtpd_tls_key_file = /etc/ssl/private/postfix.pem smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_tls_auth_only = yes
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client.
myhostname = mail.akairnet.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = mail.akairnet.com mydestination = localhost, localhost.akairnet.com, akairnet.com #local_recipient_maps = relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 91.121.76.71 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all home_mailbox = Maildir/
#virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf,mysql:/etc/postfix/mysql-virtual_aliases_comptes.cf virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domaines.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
#virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual-mailbox-domains.cf virtual_uid_maps = static:5000 virtual_gid_maps = static:5000
#virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual-mailbox-maps.cf #virtual_alias_maps = mysql:/etc/postfix/mysql/virtual-alias-maps.cf,mysql:/etc/postfix/mysql/email2email.cf
virtual_transport = dovecot dovecot_destination_recipient_limit = 1
#smtpd_sasl_type = dovecot #smtpd_sasl_path = private/auth #smtpd_sasl_auth_enable = yes #smtpd_tls_auth_only = yes #smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
maximal_queue_lifetime = 3d bounce_queue_lifetime = 3d In dovecot.conf for auth default I have :
Quote: auth default { mechanisms = plain login passdb sql { args = /etc/dovecot/dovecot-sql.conf }
userdb passwd {
} userdb static {
args = uid=5000 gid=5000 home=/home/var/vmail/%d/%n allow_all_users=yes
}
socket listen { master { # Master socket provides access to userdb information. It's typically # used to give Dovecot's local delivery agent access to userdb so it # can find mailbox locations. #path = /var/run/dovecot/auth-master #mode = 0600 # Default user/group is the one who started dovecot-auth (root) #user = #group = path = /var/run/dovecot/auth-master mode = 0600 user = vmail } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } }
You want to help me ? :confused:
View this message in context: http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-u... Sent from the Dovecot mailing list archive at Nabble.com.
Kurt22 wrote on 11.08.2010:
I have a probleme with my configuration of dovecot I think. I have no problem for send a email but I don't want receive a email. In my /var/log/mail.log I have :
Quote: connect from mail-ww0-f45.google.com[74.125.82.45] Aug 11 14:21:58 ns351550 postfix/smtpd[1844]: NOQUEUE: reject: RCPT from mail-ww0-f45.google.com[74.125.82.45]: 550 5.1.1 contact@akairnet.com: Recipient address rejected: User unknown in local recipient table; from=fwdavy@gmail.com to=contact@akairnet.com proto=ESMTP helo=
Aug 11 14:21:58 ns351550 postfix/smtpd[1844]: disconnect from mail-ww0-f45.google.com[74.125.82.45] so...problem on :
OK, user is unknown - you've commented out local_recipient_maps so the default value is
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
mydestination = localhost, localhost.akairnet.com, akairnet.com #local_recipient_maps =
Is the user "contact" existent in /etc/passwd? If you use your domain in mydestination then Postfix tries to find the user in /etc/passwd or /etc/aliases. If the user is not found then the above error is logged.
-- Daniel
Thanks Daniel, my log have evolued but i have always the problem. I use a mysql db authentification so I have replace your answer by :
local_recipient_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
with in mysql-virtual_comptes.cf :
hosts = 127.0.0.1 user = xxxx password = xxxx dbname = xxxxx table = users select_field = CONCAT(SUBSTRING_INDEX(username,'@',-1),'/',SUBSTRING_INDEX(username,'@',1),'/') where_field = username
in mail.log :
Aug 11 20:35:22 ns351550 postfix/local[24266]: DA0353BA95: to=contact@akairnet.com, relay=local, delay=0.13, delays=0.12/0/0/0, dsn=5.1.1, status=bounced (unknown user: "contact")
Kurt
-- View this message in context: http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-u... Sent from the Dovecot mailing list archive at Nabble.com.
Kurt22 wrote on 11.08.2010:
Thanks Daniel, my log have evolued but i have always the problem. I use a mysql db authentification so I have replace your answer by :
local_recipient_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
with in mysql-virtual_comptes.cf :
hosts = 127.0.0.1 user = xxxx password = xxxx dbname = xxxxx table = users select_field = CONCAT(SUBSTRING_INDEX(username,'@',-1),'/',SUBSTRING_INDEX(username,'@',1),'/') where_field = username
in mail.log :
Aug 11 20:35:22 ns351550 postfix/local[24266]: DA0353BA95: to=contact@akairnet.com, relay=local, delay=0.13, delays=0.12/0/0/0, dsn=5.1.1, status=bounced (unknown user: "contact")
Hmm, first: the sql query for postfix above version 2.2 has changed. The query (new) looks like:
query = SELECT value FROM table WHERE value='%s'
See: http://www.postfix.org/MYSQL_README.html
Depending on your mysql fields you can also use
query = SELECT username FROM users WHERE username='%s'
It's not really needed to works with concat etc.
Your config looks like that you want to use "virtual" users and domains because you use virtual_mailbox_domains and other virtual related config options.
For virtual users and domains you should not list your "virtual" domains in $mydestination. All virtual users should be in your database so that you can use the Dovecot LDA for delivery as you've set with "virtual_transport = dovecot".
I suggest to leave local_recipient_maps at the default value and use "virtual_mailbox_domains", "virtual_alias_maps" and "virtual_transport" instead. You must also change $mydestination because you can not define a domain as virtual and local domain.
If you use a mysql table for local users make sure that the user can be found. You can test this also with
postmap -q contact@your-domain mysql:/etc/postfix/mysql-virtual_comptes.cf
If the query is correct you should get back the correct value. If so, Postfix should be able to deliver the mail.
-- Daniel
I have change main.cf with :
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no append_dot_mydomain = no
#my name server myhostname = ns351550.ovh.net
readme_directory = no
alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain $mydomain local_recipient_maps = $alias_maps unix:passwd.byname $virtual_mailbox_maps relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 91.121.76.71 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all home_mailbox =
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domaines.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
virtual_uid_maps = static:5000 virtual_gid_maps = static:5000
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem smtpd_tls_key_file = /etc/ssl/private/postfix.pem smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_tls_auth_only = yes
smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
maximal_queue_lifetime = 3d bounce_queue_lifetime = 3d
but now in my mail.log I have Relay access denied
Aug 12 10:40:20 ns351550 postfix/smtpd[5332]: NOQUEUE: reject: RCPT from
web24408.mail.ird.yahoo.com[87.248.114.220]: 554 5.7.1
contact@akairnet.com: Relay access denied; from=fwdavy@yahoo.fr
to=contact@akairnet.com proto=SMTP helo=
-- View this message in context: http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-u... Sent from the Dovecot mailing list archive at Nabble.com.
Kurt22 wrote on 12.08.2010:
but now in my mail.log I have Relay access denied
Aug 12 10:40:20 ns351550 postfix/smtpd[5332]: NOQUEUE: reject: RCPT from web24408.mail.ird.yahoo.com[87.248.114.220]: 554 5.7.1 contact@akairnet.com: Relay access denied; from=fwdavy@yahoo.fr to=contact@akairnet.com proto=SMTP helo=
what's the output of
postmap -q akairnet.com mysql:/etc/postfix/mysql-virtual_domaines.cf
As result you should see "OK" for example if the query is OK and if your domain is listed in your mysql table. If you get no value back then Postfix reject mails because Postfix is then not "final destination". In this case you should check your mysql query if you've used the right select... syntax and make sure your domain is listed in this table.
-- Daniel
Really thanks for to help me.
postmap -q akairnet.com mysql:/etc/postfix/mysql-virtual_domaines.cf
akairnet.com
mysql-virtual_domaines.cf
query = SELECT name FROM domains WHERE name = '%s'
in My table domains I have :
id name master last_check type notified_serial account 6 davygames.com NULL NULL NATIVE NULL NULL 8 akairnet.com NULL NULL NATIVE NULL NULL
But in mail.log I have now a new problem T_T
connect to transport dovecot: Connection refused
Aug 12 15:13:45 ns351550 postfix/master[19833]: daemon started -- version 2.5.5, configuration /etc/postfix Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: connect from web24404.mail.ird.yahoo.com[87.248.114.216] Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: 8F3A73BA9A: client=web24404.mail.ird.yahoo.com[87.248.114.216] Aug 12 15:17:42 ns351550 postfix/cleanup[20041]: 8F3A73BA9A: message-id=525519.24632.qm@web24404.mail.ird.yahoo.com Aug 12 15:17:42 ns351550 postfix/qmgr[19840]: 8F3A73BA9A: from=fwdavy@yahoo.fr, size=3516, nrcpt=1 (queue active) Aug 12 15:17:42 ns351550 postfix/qmgr[19840]: warning: connect to transport dovecot: Connection refused Aug 12 15:17:42 ns351550 postfix/error[20042]: 8F3A73BA9A: to=contact@akairnet.com, relay=none, delay=0.09, delays=0.08/0/0/0, dsn=4.3.0, status=deferred (mail transport unavailable) Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: disconnect from web24404.mail.ird.yahoo.com[87.248.114.216] Aug 12 15:18:45 ns351550 postfix/qmgr[19840]: 39F933BA9C: from=<>, size=5217, nrcpt=1 (queue active) Aug 12 15:18:45 ns351550 postfix/qmgr[19840]: D7E0F3BA95: from=fwdavy@yahoo.fr, size=3464, nrcpt=1 (queue active) Aug 12 15:18:45 ns351550 postfix/qmgr[19840]: warning: connect to transport dovecot: Connection refused Aug 12 15:18:45 ns351550 postfix/error[20042]: D7E0F3BA95: to=contact@akairnet.com, relay=none, delay=591, delays=591/0/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable) Aug 12 15:18:46 ns351550 postfix/smtp[20092]: 39F933BA9C: to=fwdavy@yahoo.fr, relay=mx2.mail.eu.yahoo.com[77.238.184.241]:25, delay=406, delays=405/0.01/0.02/0.36, dsn=2.0.0, status=sent (250 ok dirdel) Aug 12 15:18:46 ns351550 postfix/qmgr[19840]: 39F933BA9C: removed
-- View this message in context: http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-u... Sent from the Dovecot mailing list archive at Nabble.com.
Kurt22 wrote on 12.08.2010:
But in mail.log I have now a new problem T_T
connect to transport dovecot: Connection refused
Aug 12 15:13:45 ns351550 postfix/master[19833]: daemon started -- version 2.5.5, configuration /etc/postfix Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: connect from web24404.mail.ird.yahoo.com[87.248.114.216] Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: 8F3A73BA9A: client=web24404.mail.ird.yahoo.com[87.248.114.216] Aug 12 15:17:42 ns351550 postfix/cleanup[20041]: 8F3A73BA9A: message-id=525519.24632.qm@web24404.mail.ird.yahoo.com Aug 12 15:17:42 ns351550 postfix/qmgr[19840]: 8F3A73BA9A: from=fwdavy@yahoo.fr, size=3516, nrcpt=1 (queue active) Aug 12 15:17:42 ns351550 postfix/qmgr[19840]: warning: connect to transport dovecot: Connection refused
do you've the appropriate entry for the Dovecot LDA in master.cf like
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
See also: http://wiki.dovecot.org/LDA/Postfix
-- Daniel
In fact I don't have :s
but now in my mail.log -> local configuration error
Aug 12 16:35:19 ns351550 postfix/pipe[24171]: B06633BA9B: to=contact@akairnet.com, relay=dovecot, delay=0.11, delays=0.07/0.01/0/0.03, dsn=5.3.5, status=bounced (local configuration error). And so in dovecot log unknow user.
Do you think if I want all reinstal my server ? xD
I have upload my http://old.nabble.com/file/p29419546/master.cf master.cf file if you want to look my file.
View this message in context: http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-u... Sent from the Dovecot mailing list archive at Nabble.com.
Kurt22 wrote on 12.08.2010:
In fact I don't have :s
but now in my mail.log -> local configuration error
Aug 12 16:35:19 ns351550 postfix/pipe[24171]: B06633BA9B: to=contact@akairnet.com, relay=dovecot, delay=0.11, delays=0.07/0.01/0/0.03, dsn=5.3.5, status=bounced (local configuration error). And so in dovecot log unknow user.
Do you think if I want all reinstal my server ? xD
I have upload my http://old.nabble.com/file/p29419546/master.cf master.cf file if you want to look my file.
OK, looks not so bad - it seems this is a configuration error in the dovecot.conf (especially in the LDA section).
Are there any other "fatal" warnings in the log a few lines before the above message? What's the output of "dovecot -n"?
-- Daniel
Congratulation Daniel it's Ok with in my dovecot.conf, I have to add :
protocol lda { postmaster_address = postmaster@akairnet.com }
So now I want to recieve and send a email. But it's strange because I have always in my dovecot log passwd(contact@akairnet.com, 91.121.76.71): unknown user.....
So it not was the problem....
Thanks really if you going in france I take you a good bottle wine :D
View this message in context: http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-u... Sent from the Dovecot mailing list archive at Nabble.com.
Kurt22 wrote on 12.08.2010:
So now I want to recieve and send a email. But it's strange because I have always in my dovecot log passwd(contact@akairnet.com, 91.121.76.71): unknown user.....
So it not was the problem....
hmm, maybe Dovecot tries to lookup the user also from /etc/passwd?
Do you use something like
passdb sql { args = /etc/dovecot-sql.conf } passdb pam { }
in your dovecot.conf? If yes, then you can try to uncomment the pam related settings. Dovecot can use multiple databases so I guess that Dovecot tries to lookup the user first from /etc/passwd and then from your mysql database. More infos: http://wiki.dovecot.org/Authentication/MultipleDatabases
Thanks really if you going in france I take you a good bottle wine :D
Thank you :-)
-- Daniel
Befor I had :
userdb passwd {
}
And now :
# userdb passwd {
# }
And now I have not this message ! Perfect :)
View this message in context: http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-u... Sent from the Dovecot mailing list archive at Nabble.com.
On 8/12/2010 1:44 PM, Kurt22 wrote:
Befor I had :
userdb passwd {
}
And now :
# userdb passwd {
# }
And now I have not this message ! Perfect :)
-- Yeah, you commented out that config so that it will ignore it.
Jerrale G. SC Senior Admin
participants (3)
-
Daniel Luttermann
-
Jerrale G
-
Kurt22