
1st February 2010, 20:24
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

2nd February 2010, 00:09
|
|
Senior Member
|
|
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 159
Thanks: 39
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by kusumoto
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.
|

2nd February 2010, 18:28
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I don't want to use relay.
It seems to be trying to do that anyway.
That's what the issue is.
|

3rd February 2010, 16:20
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

4th February 2010, 14:50
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Quote:
Originally Posted by kusumoto
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?
|

4th February 2010, 16:59
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I didn't have that enabled, but when I tried sending to the other domain with that enabled I still got the same error.
|

5th February 2010, 15:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Any errors in your mail log?
|

5th February 2010, 16:16
|
|
Junior Member
|
|
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

5th February 2010, 16:41
|
|
Junior Member
|
|
Join Date: Nov 2009
Location: Austin, TX
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 01:08.
|
Recent comments
1 day 3 hours ago
1 day 5 hours ago
1 day 17 hours ago
1 day 20 hours ago
2 days 16 min ago
2 days 6 hours ago
2 days 15 hours ago
2 days 17 hours ago
3 days 1 hour ago
3 days 3 hours ago