Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th March 2012, 22:56
usr_bin_env usr_bin_env is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem sending and receiving mail

Hi everyone,

I have setup postfix and dovecot for my mail system, but i'm having a major problem sending and receiving mail as well as authentication on outgoing mail too. My email mx records have been setup and they are work fine as when i telnet mail.example.com 110 and i login with user@example.com it works great also with 143 it worked great. When i try telnet mail.example.com 25 and try to send mail to my @gmail.com (only one i have tried at the moment) with RCPT TO the message appears "Relay access denied" then when i put my email user@example.com has the RCPT TO the message "Recipient address rejected: User unknown in host recipient table". Finally i have setup my email client and it seems to login to incoming mail as the login does work through telnet, but the outgoing appears says "mail.example.com refused to allow a connection on the default ports" even through the ports are open and i can telnet into the port 25 apart from the messages above.

Any idea what could be the cause, if anyone wants the files i can post them through.

Many Thanks
Reply With Quote
Sponsored Links
  #2  
Old 16th March 2012, 23:32
usr_bin_env usr_bin_env is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just a update i got the email client to send the mail but it does not come through, but still comes up with message "Relay access denied" via telnet and i can not send mail to myself.

Last edited by usr_bin_env; 16th March 2012 at 23:38.
Reply With Quote
  #3  
Old 17th March 2012, 00:16
usr_bin_env usr_bin_env is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just added "local_recipient_maps =" to the postfix config and the message "Recipient address rejected: User unknown in host recipient table" has disappeared. It seems that the email gets sent but i still don't receive it either with gmail and my domain.
Reply With Quote
  #4  
Old 17th March 2012, 12:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Please check if your server is blacklisted: http://mxtoolbox.com/blacklists.aspx
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 17th March 2012, 15:27
usr_bin_env usr_bin_env is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi falko,

The my ip is listed in SORBS-DUHL 127.0.0.10 3600 and Spamhaus-ZEN 127.0.0.11 900.

Thanks
Reply With Quote
  #6  
Old 18th March 2012, 22:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Is this a dynamic IP, or what are the reasons for being blacklisted? If you have a dynamic IP, you need to relay through another mailserver: http://www.howtoforge.com/postfix_re...her_mailserver
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 19th March 2012, 14:29
usr_bin_env usr_bin_env is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

Thanks for the information, sorry i have been busy trying to sort my email configuration out. I have put the email server on my vps and i have got it working. Then after messing with getting it to login as user@domain which works fine but receiving the mail is a bit of a pain. When sending email to user@example.com first the mail log said:

"(delivery failed to mailbox /vmail/example.com/user: unable to create lock file /vmail/example.com/user.lock: Permission denied)"

just to get it to disappear i chmod 777 then this appears:

(delivery failed to mailbox /vmail/example.com/user: cannot open file: Is a directory)

when postfix/dovecot whoever created i didn't, so its complaining about something that itself did. I can not work it out.

Thanks
Reply With Quote
  #8  
Old 19th March 2012, 17:24
usr_bin_env usr_bin_env is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

now the error has gone back to:

"(delivery failed to mailbox /vmail/example.com/user: unable to create lock file /vmail/example.com/user.lock: Permission denied)"

Reply With Quote
  #9  
Old 19th March 2012, 18:01
usr_bin_env usr_bin_env is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

i have sorted but i thought i could only login with user@domain but i can just use user as the username
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 23:58
mail recipient linux_red Installation/Configuration 6 9th March 2012 15:24
mail queue - mail not sending not receiving Amorphous Installation/Configuration 2 25th January 2012 00:55
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 11:56
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 17:27


All times are GMT +2. The time now is 20:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.