Linode Forum
https://forum.linode.com/

Setting up Backup Mail
https://forum.linode.com/viewtopic.php?f=11&t=1023
Page 1 of 1

Author:  Brenden [ Sat Jul 17, 2004 2:37 am ]
Post subject:  Setting up Backup Mail

Hi

How do I setup sendmail to act as a backup mail server (store and forward) for an unlimited amount of domains.

Author:  rjp [ Sun Jul 18, 2004 8:59 am ]
Post subject:  use the access database

In Debian and Fedora (and presumably Red Hat), the default sendmail.mc has the access database enabled. You can use this to add domains that you wish to relay; for each domain for which you wish to be a backup MX, go to the /etc/mail directory, and add a line of the form:

Code:
domain.example.com           RELAY


to the access file. Then leave your editor, and use make to build the database. While Debian's makefile will suggest you also do /etc/init.d/sendmail reload after running make, I've found that it's unnecessary in most cases.

The access database can also be used to deny relaying; if there's a zombie running a dictionary attack, you can nip it in the bud with something like:

Code:
Connect:192.168.42.42          REJECT


or

Code:
From:idiotspammer@example.com            550 Address unknown


More information is available here.

EDIT: pointing out the /etc/mail/access file.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/