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 1st February 2010, 20:24
kusumoto kusumoto is offline
Junior Member
 
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't send without relayhost?

I am using postfix on an ubuntu 9.10 server. It is working perfectly on all parts of postfix/dovecot. I have it set up to forward through my router and there are MX and A records in my primary DNS server for the mail server. The mail server also has a DNS server (forwarding requests it can't answer to the primary DNS server).
I commented out 'relayhost =' in my main.cf
I don't want to use a relay host. I want to send out directly.

Whenever I try to send to a domain other than the one hosted by the mailserver, I get an error stating.
The mail server responded: 5.7.1 <email i was sending to>: Relay access denied. Please check the message recipient <email i was sending to> and try again.


Please assist.
Reply With Quote
Sponsored Links
  #2  
Old 2nd February 2010, 00:09
rutame rutame is offline
Senior Member
 
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 161
Thanks: 39
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by kusumoto View Post
I am using postfix on an ubuntu 9.10 server. It is working perfectly on all parts of postfix/dovecot. I have it set up to forward through my router and there are MX and A records in my primary DNS server for the mail server. The mail server also has a DNS server (forwarding requests it can't answer to the primary DNS server).
I commented out 'relayhost =' in my main.cf
I don't want to use a relay host. I want to send out directly.

Whenever I try to send to a domain other than the one hosted by the mailserver, I get an error stating.
The mail server responded: 5.7.1 <email i was sending to>: Relay access denied. Please check the message recipient <email i was sending to> and try again.


Please assist.
Yes, you can send emails without relay.
Look, one thing is relayhost, per example another smtp and relay is for accounts out of your domain, i think.

Greetings

Last edited by rutame; 2nd February 2010 at 00:26.
Reply With Quote
  #3  
Old 2nd February 2010, 18:28
kusumoto kusumoto is offline
Junior Member
 
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't want to use relay.
It seems to be trying to do that anyway.
That's what the issue is.
Reply With Quote
  #4  
Old 3rd February 2010, 15:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

If you have a dynamic IP, this IP is most likely blacklisted, and you must relay through another mailserver: http://www.howtoforge.com/postfix_re...her_mailserver

You can check if your IP 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 3rd February 2010, 16:20
kusumoto kusumoto is offline
Junior Member
 
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a static IP and it is not blacklisted. The DNS entries on the external DNS server points to my router. My router forwards all www/pop3/smtp traffic to/from the internal static of my mail server.

I would think this is a software issue, rather than a networking issue. That being said, I am open to any other ideas.
Reply With Quote
  #6  
Old 4th February 2010, 14:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by kusumoto View Post
Whenever I try to send to a domain other than the one hosted by the mailserver, I get an error stating.
The mail server responded: 5.7.1 <email i was sending to>: Relay access denied. Please check the message recipient <email i was sending to> and try again.


Please assist.
Did you enable "Server requires authentication" in your email client?
__________________
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 4th February 2010, 16:59
kusumoto kusumoto is offline
Junior Member
 
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I didn't have that enabled, but when I tried sending to the other domain with that enabled I still got the same error.
Reply With Quote
  #8  
Old 5th February 2010, 15:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Any errors in your mail log?
__________________
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
  #9  
Old 5th February 2010, 16:16
kusumoto kusumoto is offline
Junior Member
 
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is the log from the send attempt.

Feb 5 09:14:00 mail dovecot: auth(default): new auth connection: pid=21297
Feb 5 09:14:05 mail postfix/smtpd[21298]: connect from gatewayhostname[myip]
Feb 5 09:14:05 mail postfix/smtpd[21298]: NOQUEUE: reject: RCPT from gatewayhostname[myip]: 554 5.7.1 <targetemail>: Relay access denied; from=<sourceemail> to=<targetemail> proto=ESMTP helo=<sendershostname>
Feb 5 09:14:05 mail postfix/smtpd[21298]: disconnect from gatewayhostname[myip]


EDIT: put in some variables because i'm paranoid

Last edited by kusumoto; 5th February 2010 at 23:16.
Reply With Quote
  #10  
Old 5th February 2010, 16:41
MxToolBox MxToolBox is offline
Junior Member
 
Join Date: Nov 2009
Location: Austin, TX
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I did a quick SMTP Diagnostic on your IP and I do see that you are receiving one warning about your rDNS. This might not be the cause of your mail problems but it definitely isn't helping. Large ISPs like Gmail or Hotmail may deny your mail or flag it as spam since your rDNS doesn't match.

I would recommend resolving that and then seeing if that helps.

Thanks,
@MxToolBox
__________________
MxToolBox.com
@MxToolBox
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
clamav and aspanaassin does not send notify emails to sender when virus found Emileve HOWTO-Related Questions 0 19th September 2009 10:20
Can send & recieve mail via local mail & linux acts but cannot recieve frm ext mail tyliong HOWTO-Related Questions 3 8th January 2009 05:14
Errors Installing Postfix, PostfixAdmin, Courier asyadiqin Installation/Configuration 15 13th November 2008 17:28
Cant send mail with apache fareasd Installation/Configuration 5 20th September 2007 14:27
can not send mail provell Installation/Configuration 7 27th April 2006 17:23


All times are GMT +2. The time now is 04:45.


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