[Dovecot] Problem with dovecot configuration + mysql (I think)
Hi everybody,
I have a problem after configuring dovecot to work with mysql (Debian Etch System).
When i send an email from outside, i have an undelivred mail returned to sender saying : Relay access denied (in reply to RCPT TO command)
In my dovecot log file i have these errors :
Nov 28 20:08:27 myhost postfix/smtpd[5087]: connect from
smtp5-g21.toto.com [1.2.3.4]
Nov 28 20:08:27 myhost postfix/smtpd[5087]: NOQUEUE: reject: RCPT from
smtp5-g21.toto.com [1.2.3.4]: 554 5.7.1 mymail@test.com: Relay access
denied; from=outside-mail@toto.com to=mymail@test.com proto=ESMTP
helo=
What do you think is the problem ?
Thanks,
Nov 28 20:08:27 myhost postfix/smtpd[5087]: connect from smtp5-g21.toto.com [1.2.3.4] Nov 28 20:08:27 myhost postfix/smtpd[5087]: NOQUEUE: reject: RCPT from smtp5-g21.toto.com [1.2.3.4]: 554 5.7.1 mymail@test.com: Relay access denied; from=outside-mail@toto.com to=mymail@test.com proto=ESMTP helo=
Nov 28 20:08:28 myhost postfix/smtpd[5087]: disconnect from smtp5-g21.toto.com [1.2.3.4]
What do you think is the problem ? The problem is not in your dovecot configuration, but in your postfix configuration. Relay access denied means that the server is not relaying for you. Either the domain is not in the relay list or you are not allowed to send e-mail through your server to other servers (being an open-relay) which is a good thing!
- Rene
Le 30/11/2009 17:29, Rene Bakkum a écrit :
Nov 28 20:08:27 myhost postfix/smtpd[5087]: connect from smtp5-g21.toto.com [1.2.3.4] Nov 28 20:08:27 myhost postfix/smtpd[5087]: NOQUEUE: reject: RCPT from smtp5-g21.toto.com [1.2.3.4]: 554 5.7.1 mymail@test.com: Relay access denied; from=outside-mail@toto.com to=mymail@test.com proto=ESMTP helo=
Nov 28 20:08:28 myhost postfix/smtpd[5087]: disconnect from smtp5-g21.toto.com [1.2.3.4]
What do you think is the problem ? The problem is not in your dovecot configuration, but in your postfix configuration. Relay access denied means that the server is not relaying for you. Either the domain is not in the relay list or you are not allowed to send e-mail through your server to other servers (being an open-relay) which is a good thing!
- Rene
Hi,
I fixed that problem thanks ! Like you told it was postfix conf problem !
But now i'm facing another one, I couldn't connect to my account by using Outlook ! Thunderbird 3 works great but Outlook 2007 don't connect to imap or smtp !
I used secure imap and secure smtp with TLS/SSL support !
PS: I used imap_client_workarounds = outlook-idle but it dosn't work
Any clue?
Le 30/11/2009 23:27, Joss a écrit :
Le 30/11/2009 17:29, Rene Bakkum a écrit :
Nov 28 20:08:27 myhost postfix/smtpd[5087]: connect from smtp5-g21.toto.com [1.2.3.4] Nov 28 20:08:27 myhost postfix/smtpd[5087]: NOQUEUE: reject: RCPT from smtp5-g21.toto.com [1.2.3.4]: 554 5.7.1 mymail@test.com: Relay access denied; from=outside-mail@toto.com to=mymail@test.com proto=ESMTP helo=
Nov 28 20:08:28 myhost postfix/smtpd[5087]: disconnect from smtp5-g21.toto.com [1.2.3.4]
What do you think is the problem ? The problem is not in your dovecot configuration, but in your postfix configuration. Relay access denied means that the server is not relaying for you. Either the domain is not in the relay list or you are not allowed to send e-mail through your server to other servers (being an open-relay) which is a good thing!
- Rene
Hi,
I fixed that problem thanks ! Like you told it was postfix conf problem !
But now i'm facing another one, I couldn't connect to my account by using Outlook ! Thunderbird 3 works great but Outlook 2007 don't connect to imap or smtp !
I used secure imap and secure smtp with TLS/SSL support !
PS: I used imap_client_workarounds = outlook-idle but it dosn't work
Any clue?
For notice here is the log i get :
Nov 30 23:27:03 machine-name postfix/smtpd[5668]: connect from client_host[client_ip] Nov 30 23:30:41 machine-name dovecot: imap-login: Disconnected: rip=client_ip, lip=my_ip, TLS handshake Nov 30 23:30:41 machine-name postfix/smtpd[5679]: connect from client_host[client_ip] Nov 30 23:31:56 machine-name postfix/smtpd[5679]: SSL_accept error from client_host[client_ip]: -1 Nov 30 23:31:56 machine-name postfix/smtpd[5679]: lost connection after CONNECT from client_host[client_ip] Nov 30 23:31:56 machine-name postfix/smtpd[5679]: disconnect from client_host[client_ip] Nov 30 23:32:02 machine-name postfix/smtpd[5668]: SSL_accept error from client_host[client_ip]: -1 Nov 30 23:32:02 machine-name postfix/smtpd[5668]: lost connection after CONNECT from client_host[client_ip] Nov 30 23:32:02 machine-name postfix/smtpd[5668]: disconnect from client_host[client_ip]
Joss Red wrote:
But now i'm facing another one, I couldn't connect to my account by using Outlook ! Thunderbird 3 works great but Outlook 2007 don't connect to imap or smtp !
I used secure imap and secure smtp with TLS/SSL support !
PS: I used imap_client_workarounds = outlook-idle but it dosn't work
Any clue?
For notice here is the log i get :
Nov 30 23:27:03 machine-name postfix/smtpd[5668]: connect from client_host[client_ip] Nov 30 23:30:41 machine-name dovecot: imap-login: Disconnected: rip=client_ip, lip=my_ip, TLS handshake Nov 30 23:30:41 machine-name postfix/smtpd[5679]: connect from client_host[client_ip] Nov 30 23:31:56 machine-name postfix/smtpd[5679]: SSL_accept error from client_host[client_ip]: -1 Nov 30 23:31:56 machine-name postfix/smtpd[5679]: lost connection after CONNECT from client_host[client_ip] Nov 30 23:31:56 machine-name postfix/smtpd[5679]: disconnect from client_host[client_ip] Nov 30 23:32:02 machine-name postfix/smtpd[5668]: SSL_accept error from client_host[client_ip]: -1 Nov 30 23:32:02 machine-name postfix/smtpd[5668]: lost connection after CONNECT from client_host[client_ip] Nov 30 23:32:02 machine-name postfix/smtpd[5668]: disconnect from client_host[client_ip]
Your logfile contains mostly postfix/smtpd daemon entries, and the disconnect from the IMAP. Do you see a successfully IMAP connection in your log? Do you have a signed certificate or self-signed? When you connect, do you get the certificate pop-up? Maybe Outlook has some hidden feature to disable invalid certificates. But I refuse to install Outlook to see how it works in my environment :)
Maybe you can filter the postfix entries out your log. Postfix is only used for the smtp feature, while dovecot does your pop3/imap.
With the following entries in dovecot, you can log their entries in a different logfile than postfix: log_path = /var/log/dovecot.log info_log_path = /var/log/dovecot-info.log
- Rene
participants (3)
-
Joss
-
Joss Red
-
Rene Bakkum