Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Mark Thomas on May 30, 2002, 07:07:43 PM

Title: Mailserver on DMZ - not allowing me to send mail
Post by: Mark Thomas on May 30, 2002, 07:07:43 PM
Hi!

As the subject says, I have a E-Smith 5.1.2 running server/gateway on a
DMZ behind a firewall.

The dmz is 192.129.217.* with the server being .20

the gateway is 192.129.217.102 - every time I try to send an email from my Internal LAN - 172.16.0.* it says the following:-

"The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was '******@hotmail.com'. Subject 'test', Account: 'Home', Server: '192.129.217.20', Protocol: SMTP, Server Response: '551 Sorry pc-00102(192.129.217.102), I don't allow unauthorized relaying. Please use another SMTP host to mail from to <*******@hotmail.com>', Port: 25, Secure(SSL): No, Server Error: 551, Error Number: 0x800CCC79"

What do I have to do to allowing me to send email from my internal LAN through the e-smith and out, because as you can see it is effectively not allowing me to relay email from my router (192.129.217.102)......

I have tried IMAP before SMTP and this STILL stops me!

Thanks

Mark
Title: Re: Mailserver on DMZ - not allowing me to send mail
Post by: Nico on May 30, 2002, 07:25:14 PM
We still have the same problem and are actually looking for help :/ One thing I can say is that before installing some RPM (do not now which), mail forwarding worked good...

I wish someone could help you and me at the same time because i don't want to reinstall all to find which RPM make it unavailable...


see you.

P Nico
Title: Re: Mailserver on DMZ - not allowing me to send mail
Post by: Nathan Fowler on May 30, 2002, 07:40:04 PM
In your E-Smith configuration, make sure you add:
172.16.0.* as a local network

Right now you're getting unauthorized relaying because E-Smith sees 172.16.0.*  as an external network, not a local network.  When you add 172.16.0.* in addition to 192.129.217.* you should be ok.

Nathan
Title: Re: Mailserver on DMZ - not allowing me to send mail
Post by: Mark Thomas on May 31, 2002, 05:25:21 PM
No , you misunderstand the error message,

I have 172.16.0.0 as a  local network , but the message above is saying that it isnt allowing smtp relay from the 192.129.217.102 address (the default gateway address)

Any other ideas guys?

Thanks

Mark
Title: Re: Mailserver on DMZ - not allowing me to send mail
Post by: Nathan Fowler on May 31, 2002, 09:27:17 PM
If you E-Mail me the contents of your /var/spool/smtpd/etc/smtpd_check_rules I can better address the situation and trace the source of the error.  Sorry for the misunderstanding.

Nathan
Title: Re: Mailserver on DMZ - not allowing me to send mail
Post by: Mark Thomas on June 01, 2002, 01:25:32 PM
Thanks Nathan,

file is on its way to you...

Regards

Mark
Title: Re: Mailserver on DMZ - not allowing me to send mail
Post by: Mark Thomas on June 06, 2002, 03:55:54 PM
Found out what the problem was - I had my email client set up to send SMTP mail via the machines DMZ address - instead of the legal IP

Soon as I put the legal IP in, it works great.

Sorry for such a stupid mistake!

Thanks for the replies though!

Mark