Updated March 07, 2003
Created March 07, 2003
Autogenerated Site Map
Search this Site!:
If sendmail hangs when you start it, then set your hostname:
hostname.html
My mail (from this same machine) kept getting rejected with the following errors:
Mar 2 04:33:34 linuxone sm-msp-queue[20279]: h226X9wP015564: to=root, delay=02:45:54, xdelay=00:00:00, mailer=relay, pri=303256, relay=linuxone.mydomain.net., dsn=4.0.0, stat=Deferred: Connection refused by linuxone.mydomain.net.
Mar 2 04:33:34 linuxone sm-msp-queue[20279]: h226X9wN015564: to=postmaster, delay=02:46:20, xdelay=00:00:00, mailer=relay, pri=303961, relay=linuxone.mydomain.net., dsn=4.0.0, stat=Deferred: Connection refused by linuxone.mydomain.net.
Mar 2 04:33:34 linuxone sm-msp-queue[20279]: h226X9wO015564: to=postmaster, delay=02:46:20, xdelay=00:00:00, mailer=relay, pri=306521, relay=linuxone.mydomain.net., dsn=4.0.0, stat=Deferred: Connection refused by linuxone.mydomain.net.
Here's the short and simple (yes the changes to "/etc/mail/access" is not secure in any way, but I'm behind a firewall
so I don't care about security right now, I just want it to work) that I need to be able to
send mail.
I'm behind a firewall and here's what I need to get to the outside,
I made 3 changes in 2 files, you can see them here in bold, and a leading -
represents something taken away, and a leading + represents something
added:
--- mail-test/access 2002-08-29 14:38:26.000000000 -0500
+++ mail/access 2003-03-07 14:39:44.000000000 -0600
@@ -7,4 +7,6 @@
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
+net RELAY
+com RELAY
--- mail-test/sendmail.mc 2002-08-29 14:38:25.000000000 -0500
+++ mail/sendmail.mc 2003-03-07 14:40:17.000000000 -0600
@@ -10,7 +10,7 @@
OSTYPE(`linux')
dnl Uncomment and edit the following line if your mail needs to be sent out
dnl through an external mail server:
-dnl define(`SMART_HOST',`smtp.your.provider')
+define(`SMART_HOST',`smtp.myprovider.com')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
@@ -53,7 +53,7 @@
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
-DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
+dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl a kernel patch
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')
After Making the above changes, you have to run "m4" to generate a new
sendmail.cf file:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Search this Site!:
Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html