cd /etc/mail ; make ; ls -l access*
lrwxr-xr-x 1 root wheel 9 Jul 10 2004
access@ -> LN/access
Ensure passwords database is not world readable.
-rw-r----- 1 root wheel 114688 Aug 8 18:31 access.db lrwxr----- 1 root bin 33 May 24 14:08 LN/access@ -> ../../domain/this/etc/mail/access
cd /etc/mail ; chmod 640 access.db ;
chown root:wheel access.db
cd /etc/mail ; make ; make stop ; make start # Probably better than restart. Do This On Remote Server (Smart Host)(That Should Receive Mail From You & Further Relay It To Rest Of Internet )
libexec/mail.local
libexec/smrsh
usr.bin/vacation
usr.sbin/editmap
usr.sbin/mailstats
usr.sbin/makemap
usr.sbin/praliases
usr.sbin/sendmail
cd /usr/ports/databases/db3 ; make
install
To avoid missing libsmutil and libsm libraries, either eg:
cd /usr/src ; make cleandir ; make
clean cleandepend all install
The above might solve the problem of host=tower
currently only showing: 250-AUTH PLAIN
LOGIN
cd /etc/mail ; make ; make stop ; make start # Probably better than restart. Test On Sender ( Gateway between Internet & local net)
echo "Local test (works without SASL)" ;
date | mail postmaster@remote_relay_smart_host
echo "Remote test (needs SASL)" ; date | mail someone@some_host_beyond_smarthost Verify
Debug
Good Examples
/var/log/maillog Each line begins: Date
Time hostname sm-mta[Process ID] (Note, particularly
on remote smart host, sometimes different PID lines get
interleaved, indicating several jobs running in parallel
simultaneously).
On Local Gateway, To Remote Smart Host
k04DRJls021661: --- 050
<remote@destination. com>
Connecting to smtprelay3.berklix.org
via esmtp...
k04DRJls021661: SMTP outgoing connect on p549A63B3.dip.t-dialin.net AUTH=client, realm=tower.berklix.org, available realms=<No Realms> AUTH=client, relay=smtprelay3.berklix.org, mech=DIGEST-MD5, bits=128 k04DRJls021661: --- 050 <remote@destination. com> Sent (k04DRNos040492 Message accepted for delivery) k04DRJls021661: to=<remote@destination. com> delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=30594, relay=smtprelay3.berklix.org [83.236.223.114], dsn=2.0.0, stat=Sent (k04DRNos040492 Message accepted for delivery) k04DRJls021661: done; delay=00:00:06, ntries=1 NOQUEUE: --- 050 Closing connection to smtprelay3.berklix.org On Remote Smart Host
NOQUEUE: connect from
p549A63B3.dip.t-dialin.net [84.154.99.179]
AUTH: available mech=LOGIN PLAIN ANONYMOUS DIGEST-MD5 CRAM-MD5, allowed mech=GSSAPI DIGEST-MD5 PLAIN LOGIN k04DRNor040492: Milter: no active filter k04DRNor040492: --- 220 tower. berklix.org ESMTP Sendmail 8.12.9p2/8.12.9; Wed, 4 Jan 2006 14:27:23 +0100 (CET) k04DRNor040492: <-- EHLO local-gate.net k04DRNor040492: --- 250-tower. berklix.org Hello p549A63B3.dip.t-dialin.net [84.154.99.179], pleased to meet you k04DRNor040492: --- 250-ENHANCEDSTATUSCODES k04DRNor040492: --- 250-PIPELINING k04DRNor040492: --- 250-8BITMIME k04DRNor040492: --- 250-SIZE k04DRNor040492: --- 250-DSN k04DRNor040492: --- 250-ETRN k04DRNor040492: --- 250-AUTH DIGEST-MD5 PLAIN LOGIN k04DRNor040492: --- 250-DELIVERBY k04DRNor040492: --- 250 HELP k04DRNor040492: <-- AUTH DIGEST-MD5 = k04DRNor040492: --- 334 bm9uY2U.................... k04DRNor040492: --- 334 cnNwYXV.................... k04DRNor040492: --- 235 2.0.0 OK Authenticated AUTH=server, relay=p549A63B3.dip.t-dialin.net [84.154.99.179], authid=jhs, mech=DIGEST-MD5, bits=128 k04DRNor040492: <-- EHLO local-gate.net k04DRNos040492: --- 250-tower. berklix.org Hello p549A63B3.dip.t-dialin.net [84.154.99.179], pleased to meet you k04DRNos040492: --- 250-ENHANCEDSTATUSCODES k04DRNos040492: --- 250-PIPELINING k04DRNos040492: --- 250-8BITMIME k04DRNos040492: --- 250-SIZE k04DRNos040492: --- 250-DSN k04DRNos040492: --- 250-ETRN k04DRNos040492: --- 250-AUTH DIGEST-MD5 PLAIN LOGIN k04DRNos040492: --- 250-DELIVERBY k04DRNos040492: --- 250 HELP k04DRNos040492: <-- MAIL From:<local_user @ flat. berklix.net> SIZE=594 k04DRNos040492: --- 250 2.1.0 <local_user @flat. berklix.net> Sender ok k04DRNos040492: <-- RCPT To:<remote@destination. com> k04DRNos040492: --- 250 2.1.5 <remote@destination. com> Recipient ok k04DRNos040492: <-- DATA k04DRNos040492: --- 354 Enter mail, end with "." on a line by itself k04DRNos040492: from=<local_user @ flat.berklix.net> size=828, class=0, nrcpts=1, msgid=<200601041327.k04DRccs003279 @local-gate.net>, proto=ESMTP, daemon=IPv4, relay=p549A63B3.dip.t-dialin.net [84.154.99.179] k04DRNos040492: --- 250 2.0.0 k04DRNos040492 Message accepted for delivery k04DRNot040492: <-- QUIT k04DRNot040492: --- 221 2.0.0 tower. berklix.org closing connection
| |||||||||||||||||||||||||||||||||||||||||||
|