LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DoveCot/Postfix Relay access denied (http://www.linuxquestions.org/questions/linux-networking-3/dovecot-postfix-relay-access-denied-904469/)

jedilost1 09-22-2011 12:41 PM

DoveCot/Postfix Relay access denied
 
I have a CENTOS server running Postfix, DoveCot, Webmin and SquirrelMail.

All works well with ports and i can send.

I just cannot receive.

When trying to send email to my domain on this machine i receive this message:

(Server IP) does not like recipient.
Remote host said: 554 5.7.1 <user@domainname.com>: Relay access denied Giving up on (Server IP).

The results from 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_protocols = all
mailbox_command =
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
myorigin = alliedhealtheacademy.com
newaliases_path = /usr/bin/newaliases.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

Can anyone help me out? I'm sure i missed something, it seems to be just a relay issue.

mpapet 09-22-2011 02:11 PM

Postfix is rejecting the mail as an attempted relay probably because domainname.com is not in mydestination. I can't tell what's in mydestination = $myhostname, localhost.$mydomain, $mydomain

jedilost1 09-22-2011 02:18 PM

Quote:

Originally Posted by mpapet (Post 4479477)
Postfix is rejecting the mail as an attempted relay probably because domainname.com is not in mydestination. I can't tell what's in mydestination = $myhostname, localhost.$mydomain, $mydomain

so should i add my 'domainname'.com to the main.cf file?

jedilost1 09-22-2011 02:20 PM

That worked!

Thank you very much Mpapet.

I knew it was one small thing i was missing.

jedilost1 09-23-2011 03:18 PM

Now i have another issue with Dovecot which i think is another simple fix...

When trying to log in with pop3 (using Telnet) i receive this message:

ERROR: Login failed -ERR Plaintext authentication disallowed on non-secure (SSL/TLS) connections.
POP3 test failed.

Would you happen to know how to remedy this?

jedilost1 09-23-2011 03:29 PM

Quote:

Originally Posted by jedilost1 (Post 4480483)
Now i have another issue with Dovecot which i think is another simple fix...

When trying to log in with pop3 (using Telnet) i receive this message:

ERROR: Login failed -ERR Plaintext authentication disallowed on non-secure (SSL/TLS) connections.
POP3 test failed.

Would you happen to know how to remedy this?

Sorry i fixed this issue.

I went to the 10-auth.conf file in the conf.d/ dovecot configuration folder and changed disable_plaintext_auth = no to yes.

I restarted Dovecot after that and all was well!

lithos 09-24-2011 02:34 AM

Nice work, you read your messages and solved.

now please if you solved it, use the thread options to mark it Solved.

jdouk69 11-05-2012 04:46 PM

Relay access denied'
 
I have some relay problem i cant figure out. I can receive but i can not send. I have relay off for security. Any help would be great


> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> broken_sasl_auth_clients = yes
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/libexec/postfix
> data_directory = /var/lib/postfix
> debug_peer_level = 1
> html_directory = /usr/share/doc/postfix/html
> inet_protocols = all
> mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
> mailq_path = /usr/bin/mailq.postfix
> manpage_directory = /usr/share/man
> milter_default_action = accept
> milter_protocol = 2
> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
> mydomain = modeld.com
> myhostname = www.model.com
> mynetworks = 127.0.0.0/8, 192.1.165.01/24
> myorigin = $mydomain
> newaliases_path = /usr/bin/newaliases.postfix
> non_smtpd_milters = inet:localhost:20209
> readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
> sample_directory = /usr/share/doc/postfix-2.6.6/samples
> sender_bcc_maps = hash:/etc/postfix/bcc
> sendmail_path = /usr/sbin/sendmail.postfix
> setgid_group = postdrop
> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
> smtpd_helo_required = yes
> smtpd_milters = inet:localhost:20209
> smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination permit_inet_interfaces permit_sasl_authenticated
> smtpd_sasl_auth_enable = yes
> smtpd_tls_CAfile = /etc/postfix/cacert.pem
> smtpd_tls_auth_only = no
> smtpd_tls_cert_file = /etc/postfix/smtpd.cert
> smtpd_tls_key_file = /etc/postfix/smtpd.key
> smtpd_tls_loglevel = 1
> smtpd_tls_received_header = yes
> smtpd_tls_session_cache_database = btre


All times are GMT -5. The time now is 03:56 PM.