Hi,
Would anyone give me some advice on coding regarding to preventing mail
realy in the Linux? Providing that linux box is not a mail server and the
mail server is running on windows base.
Thanks.
Jason
Would anyone give me some advice on coding regarding to preventing mail
realy in the Linux? Providing that linux box is not a mail server and the
mail server is running on windows base.
Thanks.
Jason
If the problem is in the Windows mail server config, it should be fixed
there. Anti-relaying is an application config issue, not a firewall
issue. Although if the mail server is purely local you can block
external access. But that's only a stopgap solution.
Quote:> |Would anyone give me some advice on coding regarding to preventing mail
> |realy in the Linux? Providing that linux box is not a mail server and
the
> |mail server is running on windows base.
> If the problem is in the Windows mail server config, it should be fixed
> there. Anti-relaying is an application config issue, not a firewall
> issue. Although if the mail server is purely local you can block
> external access. But that's only a stopgap solution.
The only thing different about relayed mail is that it comes from
outside and goes to the outside. This is not something you can easily
see from the packets, you have to examine the mail addresses. So it's
not something a packet filter can or should do.
We are using Exchange 5.0 as our mail server and this does not allow relay
prevention, not without losing POP3. Upgrading is impractical at the
moment.
To stop mail relaying I used qmail www.qmail.org on our firewall. I set it
up to just perform smtpforwarding for particular domain names.
For simplicity I allow qmail to forward smtp traffic to the exchange server
and the exchange server will send mail directly, not through qmail.
It works great for us.
Garry
Quote:> Hi,
> Would anyone give me some advice on coding regarding to preventing mail
> realy in the Linux? Providing that linux box is not a mail server and the
> mail server is running on windows base.
> Thanks.
> Jason
Jason
> We are using Exchange 5.0 as our mail server and this does not allow relay
> prevention, not without losing POP3. Upgrading is impractical at the
> moment.
> To stop mail relaying I used qmail www.qmail.org on our firewall. I set
it
> up to just perform smtpforwarding for particular domain names.
> For simplicity I allow qmail to forward smtp traffic to the exchange
server
> and the exchange server will send mail directly, not through qmail.
> It works great for us.
> Garry
> > Hi,
> > Would anyone give me some advice on coding regarding to preventing mail
> > realy in the Linux? Providing that linux box is not a mail server and
the
> > mail server is running on windows base.
> > Thanks.
> > Jason
Oh, brother. You've got deeper problems. Upgrade *immediately*: Exchange 5.0Quote:> Jason,
> We are using Exchange 5.0 as our mail server and this does not allow relay
> prevention, not without losing POP3. Upgrading is impractical at the
> moment.
One solution I've seen to this, which took me days to stop laughing about,
was to buy a hideously expensive Alpha server custom-managed by an outside
vendor to act as an upstream SMTP server, and configure that with sendmail
to block relaying and take all incoming SMTP connections, then channel them
to the Exchange server one at a time. I offered to do it with a Sparc IPC
running RedHat Linux for the price of the spare disk, but they didn't take
me seriously.
Until 3 years later, when they finally noticed the NNTP server I made out of
that IPC still running merrily without downtime and carrying internal
traffic about how to deal with Windows when the Exchange server was having
problems and email was unavailable.
Cool.Quote:> To stop mail relaying I used qmail www.qmail.org on our firewall. I set
it
> up to just perform smtpforwarding for particular domain names.
> For simplicity I allow qmail to forward smtp traffic to the exchange
server
> and the exchange server will send mail directly, not through qmail.
> It works great for us.
> > Would anyone give me some advice on coding regarding to preventing mail
> > realy in the Linux? Providing that linux box is not a mail server and
the
> > mail server is running on windows base.
> > Thanks.
> > Jason
> > Jason,
> > We are using Exchange 5.0 as our mail server and this does not allow
relay
> > prevention, not without losing POP3. Upgrading is impractical at the
> > moment.
> Oh, brother. You've got deeper problems. Upgrade *immediately*: Exchange
5.0
> will not support simultaneous incoming SMTP connections. So if two people
> send SMTP directly to your server at the same time, it will crash (in my
> experience).
> One solution I've seen to this, which took me days to stop laughing about,
> was to buy a hideously expensive Alpha server custom-managed by an outside
> vendor to act as an upstream SMTP server, and configure that with sendmail
> to block relaying and take all incoming SMTP connections, then channel
them
> to the Exchange server one at a time. I offered to do it with a Sparc IPC
> running RedHat Linux for the price of the spare disk, but they didn't take
> me seriously.
> Until 3 years later, when they finally noticed the NNTP server I made out
of
> that IPC still running merrily without downtime and carrying internal
> traffic about how to deal with Windows when the Exchange server was having
> problems and email was unavailable.
> > To stop mail relaying I used qmail www.qmail.org on our firewall. I set
> it
> > up to just perform smtpforwarding for particular domain names.
> > For simplicity I allow qmail to forward smtp traffic to the exchange
> server
> > and the exchange server will send mail directly, not through qmail.
> > It works great for us.
> Cool.
> > > Hi,
> > > Would anyone give me some advice on coding regarding to preventing
mail
> > > realy in the Linux? Providing that linux box is not a mail server and
> the
> > > mail server is running on windows base.
> > > Thanks.
> > > Jason
> "in the Linux" is a really broad term. What version of Linux, how much
> email, and what mail handler? If you have RedHat 7.2, which runs sendmail,
> there are some very nice docs in /usr/share/doc/sendmail-*/.
You don't understand do you? Packet filtering cannot prevent relaying.
A packet filter can't tell the difference between an outside machine
sending to the inside which is legit, and an outside machine sending to
the outside again which is relaying. You can however, as people have
pointed out, use a Linux mail server in front of Exchange to prevent
relaying. Better still, get rid of Exchange if you can.
Unfortunately, I just went through that at a research laboratory. Two of theQuote:> |I am thinking that Mr. Rusty Russell write code in filtering packets,
won't
> |it be a great idea to do something in preventing relaying mail?
> You don't understand do you? Packet filtering cannot prevent relaying.
> A packet filter can't tell the difference between an outside machine
> sending to the inside which is legit, and an outside machine sending to
> the outside again which is relaying. You can however, as people have
> pointed out, use a Linux mail server in front of Exchange to prevent
> relaying. Better still, get rid of Exchange if you can.
That list may be useful to other people wanting to replace Exchange
servers....
server, after four years running solid, that the expensive "Windows
consultant" hadn't been doing primary backups or explained that the state of
Exchange can't be restored from a normal tape backup, that the UPS
interpreted the disk duplication going on in DOS mode as an emergency and
discharged itself, shutting down the machine cold after 15 minutes
its' very nice SCSI card doesn't support RAID 1 to have created a duplicate
of the main disk dynamically, etc., etc.
Put your exchange server inside your internal network so It can not be
accessed from the outside. Anyone on your internal lan can get access to
your LDAP directory listings that way. Have your exchange server forward
all its mail directly to qMail, and have that server sit on your gateway
only as a relay. Allow authentication before SMTP for any pop user that
needs to get access outside of the domain. (this means that they will have
to login and check mail before they can send any.) Either that or enable a
non-public knowledge port for SMTP relay.
If your exchange server that is inside the network can not be reached from
the outside (BBI) then that server is now a secured host. Qmail acting as a
secured relay only allowing a very small number of connections is safe as
well.
OR
Run your exchange server inside your internal lan with no access save that
exchange can send mail through the gateway, and can only receive incoming
messages from the outside (no outside senders), and make any user that needs
to access their e-mail either use a web-based access solution from the
outside, or force them to VPN to your network before being able to access
the host.
------
It is probably a little bit off in concept, but I haven't slept for a
while... I recommend checking out http://www.lifewithqmail.org/....
Cheers,
Sean
>> |Would anyone give me some advice on coding regarding to preventing mail
>> |realy in the Linux? Providing that linux box is not a mail server and
> the
>> |mail server is running on windows base.
>> If the problem is in the Windows mail server config, it should be fixed
>> there. Anti-relaying is an application config issue, not a firewall
>> issue. Although if the mail server is purely local you can block
>> external access. But that's only a stopgap solution.
I am still using Exchange as the mail server.
Before the change our firewall would port forward port 25 and port 110 to
the exchange server. This was changed and the qmail smtp server was started
directly on the local machine (firewall). I left port 110 still port
forwarding to the exchange server.
Garry
> Jason
> > We are using Exchange 5.0 as our mail server and this does not allow
relay
> > prevention, not without losing POP3. Upgrading is impractical at the
> > moment.
> > To stop mail relaying I used qmail www.qmail.org on our firewall. I set
> it
> > up to just perform smtpforwarding for particular domain names.
> > For simplicity I allow qmail to forward smtp traffic to the exchange
> server
> > and the exchange server will send mail directly, not through qmail.
> > It works great for us.
> > Garry
> > > Hi,
> > > Would anyone give me some advice on coding regarding to preventing
mail
> > > realy in the Linux? Providing that linux box is not a mail server and
> the
> > > mail server is running on windows base.
> > > Thanks.
> > > Jason
1. Preventing mail forge (spam) sendmail relay
On linux v 2.19,
how to configure the "sendmail" to avoid being utilized as
a SMTP mail relay server from internet ?
Please advise
Meng
2. Error: "could not open default font 'fixed'" Help a newbie? Thanks!
4. Gateway CrystalScan starts to wiggle
5. Urgent: Prevent mail relaying
7. Configuring sendmail to prevent mail relaying
9. mail relay help to stop relay
10. Any mail server relay mail by user id/password?
11. Mail relay program that TRASHES ALL INCOMING MAIL?
12. Urgent: How to configure to prevent third party e-mail relaying
13. POP Authentication to prevent email relaying