Matt Fiddles

Life's so vast, there's just so much to do...

User Tools

Site Tools


Sidebar

"Wonderful girl! Either I'm going to kill her or I'm beginning to like her."

- Han Solo



Where will you go today?

"Many of the truths that we cling to depend on our point of view."

- OB1-Wan Kenobi
computers:mail:sendmail

Sendmail

Creating a catchall

I use this at home so my websites (on the testing machine) can send out email, but it all comes to me.

Add this to /etc/mail/sendmail.mc (after 'dnl define(`SMART_HOST', `smtp.your.provider')dnl')

dnl define(`SMART_HOST', `smtp.your.provider')dnl
define(`SMART_HOST',`local:catch-all')dnl
define(`LUSER_RELAY',`local:catch-all')dnl

I had to install sendmail-cf so it could update it's config.

Add to /etc/aliases:

catch-all:      user_to_catchall
*:              user_to_catchall

Then run 'newaliases'

[root@host ~]# newaliases
-or-
[user@host ~]$ sudo newaliases

And restart sendmail

service sendmail restart
[root@host ~]# service sendmail restart
-or-
[user@host ~]$ sudo service sendmail restart

Relay Email

How to setup an E-Mail Relay Host with Sendmail

computers/mail/sendmail.txt · Last modified: Apr 5, 2015 (3 years ago) by Matt Bagley