• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Need redirect port 25 out to spam server

mparadis

Regular Pleskian
I've posted about this before, I've looked all over the forums, just can't seem to find an answer.

How can I redirect outgoing mail to another server on the LAN so that it can send out?
The other server is a spam server which needs to have mail flowing through it in order to learn for spam/ham.

Can someone please tell me how I can make this change so that plesk does not overwrite my change with updates as well.

Thanks much.

Mike
 
you need to check out /var/qmail/control/smtproutes

A single line in there, as follows, followed by a qmail restart, will route all email out of your server to any other serever you specify.

:<spam_scanning_system_host_hostname_or_ip_address>

The ":" at the start is important!
 
you need to check out /var/qmail/control/smtproutes

A single line in there, as follows, followed by a qmail restart, will route all email out of your server to any other serever you specify.

:<spam_scanning_system_host_hostname_or_ip_address>

The ":" at the start is important!

Yes, I found that but I ended up creating a loop because the spam server is not ready yet.
I am assuming this will allow for ALL email being redirected, meaning, webmail users and mail client users.

Also, I had a slightly different method since I needed the port to be different. Can you confirm that I have this correct?

:192.168.1.55:25 (or what ever port I need)

Thanks.
 
Yes, you can add a port after another :

And yes, ALL email being sent via your server via qmail. However it will have no effect on any scripts that might set up to create their own smtp server independantly of qmail (such scripts exist for php and perl). I'm not talking about using the php or perl mail() function here. I'm talking about things that do everything themselves.
 
>I'm not talking about using the php or perl mail() function here. I'm talking about things that do
>everything themselves.

Understood and that works just fine for me. After adding the new route, do I just restart qmail from the command line or mail server via plesk?

Mike
 
Hi, this is also exactly what I am trying to do (force all mail to go via a specific route as it leaves our network)
However when I look in var/qmail/control I don't have a smtproutes file in there. The closest thing I have is smtpplugins.

Can I create that file to route my traffic via a specific server, or if I don't have it, would that mean that mine is working in a different way?

I am running Plesk 8.6.0 on Suse Linux Enterprise Server 10 if it helps.
 
If you're looking for the outgoing part, all you do is edit the /var/qmail/control/smtproute file adding what ever you wish to redirect to;

:192.168.44.25

for example, or another port, etc.

Mike
 
ambrit -- yes, just create the file.

I think there's a command that you might need to run to get qmail to create a database based on that file (though that might be just for morercpthosts -- memory like swiss cheese here -- sorry), but I'm not sure it is required -- try just restarting qmail after you do it to see if it works.

Faris.
 
Back
Top