Sendmail

From Swivel Knowledgebase
Jump to: navigation, search


Overview

Sendmail is used on Swivel appliances to send out emails. It is configured through the CMI. Sendmail is used by the following processes:

Audit scripts

Mon

VIP on PINsafe Appliances


Prerequisites

Swivel Hardware or Virtual Appliance

SMTP gateway

DNS entry for Swivel hostname


Configuring Sendmail

On the CMI select Sendmail

Select Configure

Enter the Hostname for the SMTP server

Stop then start Sendmail


Testing

To test Sendmail use from the command line mail <email@domain>. Enter the subject, content, then enter a '.' on a new line, it will them prompt for a CC address, press enter and the email should be sent. Example:

 mail support@swivelsecure.com
 Subject: test
 test
 .
 Cc:


check the /var/log/maillog for sent email

 tail /var/log/maillog


Sample output

 Oct 24 14:40:09 single sendmail[27940]: s9ODe9om027938: to=<support@swivelsecure.com>, ctladdr=<root@gswiveltest.swivelsecure.net> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120365, relay=mail-demo.swivelsecure.com. [172.16.1.250], dsn=2.0.0, stat=Sent (Ok: queued as D863A1420C4)


Known Issues

Troubleshooting

On Swivel hardware and Virtual appliances sendmail emails are logged under /var/log/maillog, to view the logs use;

 tail /var/log/maillog


Ensure Sendmail was restarted after configuring it.


Error Messages

Sender address rejected: Domain not found

The source source DNS is not configured correctly, i.e. the Swivbel server needs a DNS record for a reverse DNS lookup.