LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack 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: 370

Rep: Reputation: 41
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
Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA, trying desktop Fedora & openSuse
Posts: 851

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

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 08:34 AM.

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
Open Source Consulting | Domain Registration