HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Relay access denied (http://www.howtoforge.com/forums/showthread.php?t=10834)

brainz 23rd February 2007 04:32

Relay access denied
 
Hi Guys,

Please can i ask why i cant sent email from a email account or all email accounts i have setup for my domain...

here have a look...

Quote:

could not be delivered to some or all of the intended recipients.


User<xxx> - (554 <xxx>: Relay access denied)
User<xxx> - (554 <xxx>: Relay access denied)
here i did this as well

Quote:

FAIL Acceptance of postmaster address ERROR: One or more of your mailservers does not accept mail to xxx. Mailservers are required (RFC822 6.3, RFC1123 5.2.7, and RFC2821 4.5.1) to accept mail to postmaster.

xxx postmaster response:
>>> RCPT TO:<xxx>
<<< 554 <xxx>: Relay access denied
and this

Quote:

PASS Open relay test OK: All of your mailservers appear to be closed to relaying. This is not a thorough check, you can get a thorough one here.

xxx OK: 554 <Not.abuse.see.www.DNSreport.com.from.IP.203.56.12 7.1@DNSreport.com>: Relay access denied
any suggestion would be aprechiated...

regards
brainz

matehortua 23rd February 2007 06:07

relay rules is the answer
 
brainz,

I suppose you have Postfix as your mail server, (in any case you should when asking this kind of questions give more info, like OS, mailserver, versions)

but the important thing is that your have i quote:
PASS Open relay test OK: All of your mailservers appear to be closed to relaying

relay is the property of a mail server to restrict who (ip, user, Mailclient) can receive and send mails (not the best definition but sufficient), so in the postfix main configuration : main.conf you can enable or disable this restricctions. There are a set of rules, open them and try them each one, so go search google.

be careful becouse if you open all the restricctions you can be matricaulated as an open relay server and others servers may not receive mail that your server sends.

I think the success of a mail server is a good set of relay rules and a good set of antispam procedures. (sometimes relays rules prevent spamming ) ;) ;)

hope this helps, anf good luck

brainz 23rd February 2007 12:14

Hi Guys,

I also did this

Quote:

telnet localhost 25
ehlo localhost

and got this...

Quote:

ehlo localhost
250-xxx
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME

which i think look right...

any advice would be apreciated....

regards
brainz

brainz 23rd February 2007 12:30

Hi Guys

i all found this in the mail log

Quote:

Feb 23 22:00:03 tracs postfix/smtp[27732]: warning: host xxx replied to HELO/EHLO with my own hostname xxx
and now i simply get nothing back... no email back
any thoughts ??

regards brainz

falko 24th February 2007 14:19

What's in /etc/hosts and in /etc/postfix/main.cf (please strip out the comments)?

brainz 26th February 2007 10:03

Hi falko,

Here is what is in etc/hosts ...

Quote:

# Do not remove the following line, or various programs
# that require network functionality will fail.
xxx

and here is the stripped /etc/postfix/main.cf

Quote:

Postfix

sorry this was a bit late but here is what you have requested falko, thankyou your help once again..

regards
brainz

brainz 26th February 2007 10:09

ohhh just remebered as well this issue first started when i tried to login to squirrelmail for the account and it would not recognise the password... i changed the mailboxes password and it still does not let me in....

Just wondering if this could also be related to the issue in anyway...

regards
brainz

brainz 27th February 2007 10:18

Hi

i also found this in the mail log...

Quote:

Feb 27 10:26:48 tracs postfix/smtp[10119]: warning: host mail.tracshosting.com[60.229.253.45] greeted me with my own hostname mail.tracshosting.com
regards
brainz

falko 27th February 2007 15:42

Please modify /etc/hosts so that it looks like this:
Code:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

Restart Postfix afterwards.

brainz 1st March 2007 10:49

Hi Falko,


I have do what you asked but im sorry to say that this has not worked....

i also noticed this the server gets a email like this...

Quote:

Final-Recipient: rfc822; admin@tracshosting.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; mail for tracshosting.com loops back to myself
Also part of the server message i get this....

Quote:

WARNING: service not running (server: tracs.tracshosting.com, port: 10000)!
Message generated at February 25, 2007, 7:00.

i wonder what these mean...

regards
brainz


All times are GMT +2. The time now is 02:47.

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