Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
what should i change on sendmail to accept mail comming from any registered user on the system thats not on the same network...?
i mean... if user1 is at home and wants to use the server to send a e-mail from his laptop thats using outlook express, how do i setup sendmail to allow him to send email from anywhere any ipadress
i've been looking for these awnser for about a day now... but there is no go answer to it... its allways talking about other stuff.. from how to install sendmail and how to configure to use with outlook, BUT just if you are in the same network or certain ip range....
all i need is to know how to tell sendmail that user1 or user2 is conecting to the server and is allowed to send email..
right now i'm getting an error... 550, server not relaying... but if i send from the web interface, it does it fine... and receives fine too... its just anoying....
i'm running RedHat 8.0... its a good package but there is too many security issues... i mean... too much security...
any help will be appreciated

You use same box as www and mail server?
That's why all worked well from web-interface. If you want to send mail from another box than server you must allow relaying. Look docs with sendmail package for details how to prepare new sendmail.cf file allowing this.

I've look all those files even before you mentioned... but i sent mail from a diferente computer and few diferente servers even some overseas servers... and i can get it fine, if i try to send messeges from the box its fine... its when it come to relaying that its kind hard to find a solution...
i'm trying to find a way to relay any messeges that any of the registered users i have to that server no matter where they are conected... specially cuz most of the time this user will be on the road (around the country)
sorry for not explanning myself better...
thanks

Sendmail configuration has been changed from redhat 7.2 due to security. I did the following steps for my mail server
1) Edit /etc/hosts.denyALL except sendmail: ALL
2) Edit /etc/mail/sendmail.mc
Comment out Dameon_option (127.0.0.1)
(it is towards the end)
3) run the following command
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
hope this helps

And when you do make the changes to allow user@network to send mail through your server, please post your server's IP number so all the hackers can easily use your machine as an open relay for thier spam trash. pop3 is a clear text protocol. It would be trivial to sniff user names that are allowed to use this box as a relay.

I know the risk... but i'm sure that there is a solution to this... someone out there should know...
i need the server to relay the messeges.. but i need it to be secure also... i understand the risk.. and apriciate your concern but, all i really need is a way to get e-mail through the server.... i'm looking for a way that the user can login to the server and then send the messege....
by the way....
THANKS FOR THE HELP...it looks like that this is the only forum that i can trust to get info...

Have you looked at ipsec and VPN ? With VPN your road warrior clients would appear to be on the protected network with all traffic encrypted.
Failing that, look in the README file that ships with the sendmail.cf package for details about creating your own sendmail.cf file. Look for the items
promiscuous_relay <= VERY BAD IDEA
relay_based_on_MX <= still hackable but better
relay_mail_from
relay_local_from

thanks for the help so far..
i got another little problem... but these time should be really easy to fix...the only thing is that one of the servers i used to send email from to the new server said.. "The SMTP server may refuse to handle mail for unknown recipients."
the only thing i did to send the email was put a "mail." in from of the domain
like this:
user1@mydomain.com
user@mail.mydomain.com
and this is the only server so far to do so... i can send e-mail fine from the other servers...
i also checked the relay options... and i have both listed...
any ideas..
thaks againg for your help

![]() |
rdp server for linux
|
problem during a linux in...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |