Need help setting up a mail server forwarding to another server
by mfoley from LinuxQuestions.org on (#4WCM2)
As discussed in another thread, https://www.linuxquestions.org/quest...il-4175665219/, I'm having a lot of trouble with my sent messages going into recipients SPAM folders lately, likely because of the reasons stated in that thread: dynamic IP, no rDNS, Residential ... Mail ISP's seem to be getting more strict. I have access to a mail server with a static IP, so I'd like some help configuring that to be my mail server.
On my dynamic/residential host I'm running Slackware64 14.2, kernel 4.4.190, sendmail version 8.15.2. My ISP is Spectrum/Time-Warner and Sendmail uses mail.twc.com as the SMART_HOST; the authinfo feature is configured for authentication with Spectrum/Time-Warner. For the purposes of this post, I'll call this server DYNAMIC.
The static IP host has the same Linux and Sendmail versions as DYNAMIC. Its ISP is WOWWAY. For the purposes of this post, I'll call this server STATIC.
Here's what I think I need to do to get started:
My domain (novatec-inc.com) is registered at Network Solutions. I need to go there and point my MX record to STATIC.
I need to get in touch with WOWWAY and get the authinfo credentials from them and configure their mail relay and credentials in STATIC's /etc/mail/authinfo, and likewise in STATIC's sendmail.mc. I probably also need to add DYNAMIC's FDQN to STATIC's /etc/mail/access.db file.
I need to configure DYNAMIC to use STATIC as the SMART_HOST.
If all that sounds correct, I think I can handle that. Now, how do I get all mail arriving at DYNAMIC to route to STATIC? I believe I need to use /etc/mailertable on DYNAMIC and create an entry as follows:
Code:novatec-inc.com smtp:novatec-inc.comI've never done this. Is that correct? If so, is that all I need to do and, volia!, it all just works?
Is it OK if the MX record points to one IP (STATIC) and the host points to another (DYNAMIC)? That is, smtp gets routed to STATIC, but ssh, http, etc. get routed to DYNAMIC?
Do I need to ask WOWWAY to set up STATIC's rDNS, or can/should I do that on STATIC with named?


On my dynamic/residential host I'm running Slackware64 14.2, kernel 4.4.190, sendmail version 8.15.2. My ISP is Spectrum/Time-Warner and Sendmail uses mail.twc.com as the SMART_HOST; the authinfo feature is configured for authentication with Spectrum/Time-Warner. For the purposes of this post, I'll call this server DYNAMIC.
The static IP host has the same Linux and Sendmail versions as DYNAMIC. Its ISP is WOWWAY. For the purposes of this post, I'll call this server STATIC.
Here's what I think I need to do to get started:
My domain (novatec-inc.com) is registered at Network Solutions. I need to go there and point my MX record to STATIC.
I need to get in touch with WOWWAY and get the authinfo credentials from them and configure their mail relay and credentials in STATIC's /etc/mail/authinfo, and likewise in STATIC's sendmail.mc. I probably also need to add DYNAMIC's FDQN to STATIC's /etc/mail/access.db file.
I need to configure DYNAMIC to use STATIC as the SMART_HOST.
If all that sounds correct, I think I can handle that. Now, how do I get all mail arriving at DYNAMIC to route to STATIC? I believe I need to use /etc/mailertable on DYNAMIC and create an entry as follows:
Code:novatec-inc.com smtp:novatec-inc.comI've never done this. Is that correct? If so, is that all I need to do and, volia!, it all just works?
Is it OK if the MX record points to one IP (STATIC) and the host points to another (DYNAMIC)? That is, smtp gets routed to STATIC, but ssh, http, etc. get routed to DYNAMIC?
Do I need to ask WOWWAY to set up STATIC's rDNS, or can/should I do that on STATIC with named?