I want to run postfix + dovecot on my server. I'm doing it for first time. Postfix and Dovecot works on local - I can connect through telnet, and send/receive e-mails using commands.
When I try to connect from outside, using mail client (in my case Thunderbird), I always see in client alert: Authentication failed
.
My /var/log/maillog file says:
dovecot: pop3-login: Disconnected: Shutting down (auth failed, 6 attempts): user=<test.user>, method=PLAIN, rip=xxx.xxx.xxx, lip=xxx.xxx.xxx
.
Distribution is CentOS 6
EDIT (postconf -n
):
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = mydomain.com
myhostname = host.mydomain.com
mynetworks = xxx.xxx.xxx/24 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
When I want to send an e-mail to outside host from Thunderbird, I get 5.7.1 <[email protected]>: Relay access denied
.
Error log for this:
NOQUEUE: reject: RCPT from my_vps_domain[xxx.xxx.xxx.xxx]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[127.0.0.1]>