I just recently did a fresh install of FC2 replacing RH9. I'm having trouble with outbound email. I use evolution to read email and manage my accounts. In previous Linux setups I just would name my smarthost relay in sendmail.mc, build sendmail.cf, restart sendmail and everything would be fine. Now I'm having a problem, first I cannot make sendmail.cf because an include file is missing. These are the relevant lines in the Makefile:
@if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
umask 022; \
mv -f $@ $@.bak; \
m4 $< > $@; \
However, the /usr/share/sendmail-cf/m4/cf.m4 file is not present and thus a new sendmail.cf file is not built.
I did two tests, one with /bin/mail and another with /usr/sbin/sendmail.
> /bin/mail -s 'test message' email@example.com
This is a test message.
> tail /var/log/maillog
Oct 7 20:17:40 banach sendmail: i980HeYA003774: from=bob, size=74, class=0, nrcpts=1, msgid=<200410080017.i980HeYA003774@banach.millersville.edu>, relay=bob@localhost
Oct 7 20:17:40 banach sendmail: i980HeYA003774: firstname.lastname@example.org, ctladdr=bob (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30074, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Can anyone see what my problem is? Why is a connection on the loopback address being used?
For the second test:
> /usr/sbin/sendmail -v email@example.com
This is a test.
... Connecting to [127.0.0.1] via relay...
... Deferred: Connection refused by [127.0.0.1]
If anyone could tell me what I'm doing wrong, I would be very appreciative. If there are alternatives to delivering outbound mail besides sendmail, I'd be happy to try to set that up as well, if you would be so kind as to give me some pointers to a HOWTO.