Web Hosting Talk







View Full Version : SMTP Relaying Denied Error


homeintl
12-03-2002, 10:06 AM
Hi all,

I have a RaQ 4 server and after installing all the patches/updates pkgs from SUN, when trying to send email to an address outside the server, the following error appears:

------ Error message ------
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'info@outside-domain.com'. Subject 'Anything', Account: 'Any', Server: 'mail.sender-domain.com', Protocol: SMTP, Server Response: '550 5.7.1 <info@outside-domain.com>... Relaying denied. IP name possibly forged [IP.ADD.RE.SS]', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
------ Error message ------

This (apparently) is happening with all the virtual sites on the server. Users can send email to each other but not to an address outside the server. No problem in receiving from any address.

I have tried disabling POP before SMTP relaying but problem remains. Everything was working OK for more than a year now.

Software installed on server is:

Gossamer Threads FileMan Release 2.0.0-Raq
Relational Database Server and Client tools by InterBase. Release V6.0
Cobalt MySQL Release 3.23.37-1
Cobalt OS Release 6.0
RaQ4-All-Kernel Release 2.0.1-2.2.16C32III
RaQ4-All-Security Release 1.0.1-10749
RaQ4-All-Security Release 2.0.1-1-14936
RaQ4-All-Security Release 2.0.1-13323
RaQ4-All-Security Release 2.0.1-13453
RaQ4-All-Security Release 2.0.1-14039
RaQ4-All-Security Release 2.0.1-14559
RaQ4-All-Security Release 2.0.1-14997
RaQ4-All-Security Release 2.0.1-15417
RaQ4-All-Security Release 2.0.1-2-15787
RaQ4-All-System Release 2.0.1-12854
RaQ4-All-System Release 2.0.1-13993
RaQ4-All-System Release 2.0.1-14185
RaQ4-all-CMU Release 1.1-22
RaQ4-en-OSUpdateRelease 2.0
Third Party Disaster Recovery Release 1.0.2-9198
OpenSSH Release 3.1p1-1
Open WebMail Release 1.71-20020917
PHP Release 4.1.2-3

Any ideas what the problem could be and/or how to fix it? Your help is greatly appreciated!

Regards,

Ed
:confused:

BTW: Open WebMail is working OK. Sending and receiving. :)

Cephren
12-03-2002, 11:48 AM
is the dns local or do you have an external dns server?

homeintl
12-03-2002, 11:53 AM
Kevin,

Itīs local.

Ed

homeintl
12-05-2002, 10:01 AM
Any ideas anyone?

This error is really driving me crazy! :angry:

-Edward-
12-05-2002, 10:52 AM
Have you checked your mail before sending?

homeintl
12-05-2002, 07:30 PM
Hello Technics,

Yes I have, and as I said we can send mail to addresses in the same server but not outside of it. Pretty weird huh?

Thanks for replying!

Ed

CmptrWz
12-05-2002, 08:32 PM
I get this on occasion on ONE of my domains(it works for every other one, including one on the same server, when this domain is broken).

The steps I take to fix it are the following(I go down this list until the issue is fixed):

1) Restart the mail server, or just the server in general
2) Turn off Pop before SMTP on the server for AT LEAST 5 minutes, then turn it back on
3) Remove all traces of my domain from the e-mail server(no accept and no relay), then re-add them
4) Turn off Pop before SMTP, reboot the server, turn it back on
5) Wait three hours without checking my mail/sending mail
6) Give up hope

That is about it.

nozol
12-05-2002, 10:02 PM
here is the solution,

- enabled pop before smtp from the control panel

Then execute the following commands in ssh as root

/etc/rc.d/init.d/poprelayd restart
/etc/rc.d/init.d/syslog restart


It should work fine now, please let me know if it is ok now.

Grizzly
12-06-2002, 05:14 AM
Hi, I had the same problem (tho with external DNS).
In my case the solution was to add mydomain.com (i.e. without the www) as an email alias in the site management screens.

HTH.

Tony.

homeintl
12-06-2002, 09:16 AM
Thank you guys!
Iīll try your suggestions and let you know.

Ed

cbtrussell
12-06-2002, 10:04 AM
Really focus on the POP before SMTP suggestions, sometimes it just doesn't "take" like it's supposed to. And make sure each domain is listed in the "relay mail for' field.

HTH,

Brandon

homeintl
12-06-2002, 03:29 PM
Not only the error was strange but the "solution" is even stranger.

I was ready to try "CmptrWz" suggestion so I went to step one: "restart the mailserver or the server in general".

"POP Before SMTP" was enabled and I rebooted the server from the control panel. Went to check the problem and... it was gone! :D

The server was rebooted about three times during the past 10 or so days before this last reboot and the problem still appeared, so not sure what made it to work this time.

But thanks everyone for your time and effort!

Ed

nozol
12-06-2002, 03:45 PM
Well, here is an explaination of the problem.

POP-before-SMTP works like this

1- when you check your email, the syslogd stores your checking transaction in a file called /var/logs/maillog. This transaction records the IP address from which you checked your email
2- then, poprelayd reads the maillog file and stores the IP address in a file called /etc/mail/popip.db
3- sendmail checks that file for the allowed IPs to send emails. So if it did not find your IP, it will give you "IP is not allowed" error, which you got. If it finds your IP, it allows you to send emails.

It seemed to me that syslogd hanged somehow, so restarting it will solve the problem. That is why I suggested to restart poprelayd and syslogd.


I am glad that your problem is solved!