Sign in with
Sign up | Sign in
Your question
Solved

Sendmail in CentOS

Tags:
  • SMTP
  • Sendmail
Last response: in Linux/Free BSD
Share
July 15, 2014 11:48:45 AM

Is there anyone around here who knows anything about Sendmail in CentOS? I'm new to this program, and I have something I need to set up.

OK, so in the beginning, my lab had a physical server that ran DNS, DHCP, SMTP forwarding, and LDAP, but it failed. I have replaced the DNS and DHCP functions with a Windows VM, and LDAP with a CentOS VM, but I'm still trying to set up the SMTP forwarder.

Initially, I tried using the Windows VM for the SMTP forwarding, but my boss wanted one specific email address filtered from the output. You see, I'm in charge of a test lab, and we have software that automatically emails tech support if there's a problem. Well, with test systems, there are always problems. Tech support doesn't want to get a deluge of mail from these test systems, and the Windows SMTP forwarder can't filter by email address of the recipient, so I ended up turning off mail functionality. However, this software can also be customized so that it emails other recipients as well, and we have to test that functionality, too. So, that part of testing is on hold until I can get a new SMTP forwarder set up with this one address filtered.

I've created a dedicated VM (ESXi 5) specifically for this function, and I'm trying to get the filtering working. At the moment, I have gotten it to forward everything, so that works, but it doesn't filter.

In the sendmail.mc file, I have added these changes:
FEATURE('mailertable')
FEATURE('blacklist_recipients')
define('SMART_HOST', 'corprelay.company.com')

In the access file, I have added these lines:
Connect: 10.0 RELAY (site address range)
To:company.com RELAY (so it forwards mail to our mail server)
To: techsup@company.com DISCARD (discard email to the tech support email address)

In mailertable, I added:
.quantum.com relay:[corprelay.company.com]

Is there something I'm missing in this? Is it the order of the access entries?

More about : sendmail centos

Best solution

July 16, 2014 9:27:29 AM

Under advice of someone in the CentOS forums, I was able to get this to work with Postfix instead of Sendmail.
Share
!