quick and dirty Sendmail config
locate the following files in your /etc/mail directory
access
local-host-names
sendmail.mc
create relay-domains
Code:
open /etc/mail/access in a text editor
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
your.domain RELAY
#lan ip
xxx.xxx.xxx.xxx RELAY
save and close
open /etc/mail/relay-domains in a text editor
your domains
save and close
open /etc/mail/local-host-names in a text editor
machine alias
machine alais
mail.yourdomain.com
save and close
open /etc/mail/sendmail.mc in a text editor and change the bolded as applicable
DAEMON_OPTIONS(`Port=smtp,xxx.xxx.xxx.xxx, Name=MTA')dnl
dnl #FEATURE(`accept_unresolvable_domains')dnl
save, close
in terminal
#cd /etc/mail
#make -C /etc/mail
if send mail is running, restart it and then try sending email.
make sure pop3 is started
This is a very very simple and quick setup. It does not provide for authentication, or blacklisting. Nor does it filter spam.
This is just about enough to get you started, thats all. From here you are going to want to read up on sendmail or ASK;
Otherwise you may become an unwanted relay and become blacklisted or compromised.
Also, I did this from memory, so it may vary slightly and a feature may be missing or two (hopefully someone will come along and point out what is missing-TIA), but it should get you started.