LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-22-2011, 12:41 PM   #1
jedilost1
Member
 
Registered: Oct 2008
Posts: 45

Rep: Reputation: 15
Talking 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.
 
Old 09-22-2011, 02:11 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 452

Rep: Reputation: 46
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
 
Old 09-22-2011, 02:18 PM   #3
jedilost1
Member
 
Registered: Oct 2008
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mpapet View Post
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?
 
Old 09-22-2011, 02:20 PM   #4
jedilost1
Member
 
Registered: Oct 2008
Posts: 45

Original Poster
Rep: Reputation: 15
That worked!

Thank you very much Mpapet.

I knew it was one small thing i was missing.
 
Old 09-23-2011, 03:18 PM   #5
jedilost1
Member
 
Registered: Oct 2008
Posts: 45

Original Poster
Rep: Reputation: 15
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?
 
Old 09-23-2011, 03:29 PM   #6
jedilost1
Member
 
Registered: Oct 2008
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jedilost1 View Post
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!
 
Old 09-24-2011, 02:34 AM   #7
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Nice work, you read your messages and solved.

now please if you solved it, use the thread options to mark it Solved.
 
Old 11-05-2012, 04:46 PM   #8
jdouk69
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
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
 
  


Reply

Tags
dovecot, email, linux, postfix, relay


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix+Dovecot error : RELAY ACCESS DENIED when send mail out to Other domain simon.unix Linux - Networking 6 09-16-2009 10:54 AM
Postfix Relay Access Denied sojelee Linux - Newbie 1 03-30-2009 08:30 AM
postfix: Relay access denied gabsik Linux - Server 7 12-20-2007 04:10 AM
HELP! POSTFIX Relay access denied cozyk1515 Linux - Software 3 07-21-2006 08:56 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM


All times are GMT -5. The time now is 10:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration