Matt Fiddles

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

User Tools

Site Tools


Sidebar

“Every calling is great when greatly pursued.”



Where will you go today?

Using the Force, Yoda effortlessly frees the X-Wing from the bog.

Luke Skywalker: "I don't believe it."

Yoda: "That is why you fail."
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 (4 years ago) by Matt Bagley