看板FreeBSD
标 题Re: sendmail 後来不能用 pop3 imap 收发了
发信站Shaw Residential Internet (Wed Aug 3 16:06:57 2005)
转信站ptt!ctu-reader!ctu-peer!news.nctu!newshub.sdsu.edu!cyclone.bc.net!news
感谢 前辈指点
我重灌 sendmail mailscanner ,也将 .sh 看了一下;
( 跑 sendmail+tls+sasl2 , MailScanner , spamassassin, procmail, )
问题仍还存在 ... :
server 收来,要寄给 user 的信,都还在
/var/spool/mqueue
( 而 user 收不到 )
但, /var/mail/USERs 只有原来的 旧的 mail - 这是 原 imap 及 pop3 收信箱.
( user 所找的信箱是 /var/mail/_各USER_ )
user 确实可以用 Outlok Express 以 imap 寄信.
~~~
先请再看看 简化後的 /var/maillog
MailScanner[528]: MailScanner E-Mail Virus Scanner version 4.43.8
starting...
sm-mta-in[533]: starting daemon (8.13.4): SMTP
sm-mta-out[536]: starting daemon (8.13.4): queueing@00:15:00
MailScanner[528]: Read 182 hostnames from the phishing whitelist
sm-msp-queue[540]: starting daemon (8.13.4): queueing@00:15:00Aug 3
00:24:10 neuro sm-mta-out[539]: j731mM3M004115: SYSERR(root): Could not
connectto socket /var/imap/socket/lmtp: Socket operation on non-socket
sm-mta-out[539]: j731mM3M004115: to=user1, delay=05:35:47, xdelay=00:00:00,
mailer=cyrusv2, pri=2280000, relay=localhost, dsn=4.4.1, stat=Deferred:
Socket operation on non-socket
MailScanner[528]: Enabling SpamAssassin auto-whitelist functionality...
MailScanner[665]: MailScanner E-Mail Virus Scanner version 4.43.8
starting...
MailScanner[665]: Read 182 hostnames from the phishing whitelist
MailScanner[665]: Enabling SpamAssassin auto-whitelist functionality...
MailScanner[528]: ClamAV scanner using unrar command /usr/local/bin/unrar
MailScanner[528]: Using locktype = flock
这个也是问题吧:
sm-mta-out ... Could not connectto socket /var/imap/socket/lmtp: Socket
operation on non-socket
sm-mta-out, mailer=cyrusv2, stat=Deferred: Socket operation on non-socket
(虽然, server 存信 及 user 收信的目录不同可能才是问题真正所在 ...)
~~
再次看各 设定档 及 .sh
1]
# grep sendmail rc.conf
sendmail_enable="NONE"
NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
2]
# ls -al /etc/rc.d/sendmail
-r--r--r-- 1 root wheel 2510 May 8 00:05 sendmail
(故, 此 /etc/rc.d/sendmail 不会 run)
3]
/usr/local/etc/rc.d # ls -al (只列部份... )
-r-xr-xr-x 1 root wheel 829 Aug 2 17:26 mailscanner.sh
-r--r--r-- 1 root wheel 829 Aug 2 17:17 mailscanner.sh.sample
-r-xr-xr-x 1 root wheel 2236 Aug 2 17:28 mta.sh
-r--r--r-- 1 root wheel 2236 Aug 2 17:17 mta.sh.sample
-r-xr-xr-x 1 root wheel 724 Jul 30 14:53 sa-spamd.sh
-rwxr-xr-x 1 root wheel 1273 Jul 30 16:21 saslauthd.sh
-rw-r--r-- 1 root wheel 1098 Jul 30 14:46 saslauthd.sh~
-r--r--r-- 1 root wheel 1362 Aug 2 16:59 sendmail.sh.sample
-r--r--r-- 1 root wheel 639 Aug 2 16:59 sm-client.sh.sample
(故, 是跑 MailScanner 提供的 mta.sh 及 mailscanner.sh )
3]
# ls -al /etc/mail/*.mc
-rw-r--r-- 1 root wheel 4875 Jul 31 23:30 /etc/mail/freebsd.mc
-rw-r--r-- 1 root wheel 1234 Jul 31 20:14 /etc/mail/freebsd.submit.mc
-rw-r--r-- 1 neuro wheel 7640 Aug 2 19:06
/etc/mail/my.domail.host.net.mc
-r--r--r-- 1 root wheel 894 Jul 30 15:49
/etc/mail/my.domain.host.net.submit.mc
-rw-r--r-- 1 root wheel 14618 Aug 2 19:03 /etc/mail/sendmail.mc
这样也对吗?
我本来只修改 my.domain.host.net.mc 的设定.
(要不要将各 .mc 内容暴光检讨一下?)
谢谢
<: 老音学生 :>
===
"Dustin" <
[email protected]> 撰写於邮件新闻:
[email protected]...
>※ 引述《
[email protected] (老音学生 Old Student)》之铭言:
>> 我再想...
>> 是否 sendmail 本来好好的,
>> 後来加了 spamassassin, MailScanner
>> 故, 多跑了?
>> # grep sendmail rc.conf
>> sendmail_enable="NONE"
>> NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
>> 但, /etc/rc.d 内有
>> saslauthd
>> sendmail
>> 而, /usr/local/etc/rc.d 内有
>> mta.sh
>> sa-spamd.sh
>> mailscanner.sh
>> saslauthd.sh
>> sendmail.sh
>> sm-client.sh
> 问题应该在这里了﹐看一下mta.sh以及sendmail.sh的内容﹐
> 你在rc.conf里将sendmail_enable设为NONE﹐将 mta 交由mailscanner
> 以mta.sh来启动﹐可是不晓得为甚麽﹐你又用sendmail.sh来启动sendmail﹐
> (或许是安装SASL的设定。所以就会在系统启动SMTP时产生socket已经被占用的讯息。
>
>
>> (还有一些 *.sh.sample 及 *.sh~ 的屍体.
>> 因为我 将 .*sh.sample cp 成 *.sh , 然後去改)
>> 这样可乎?
>> <: 老音学生 :>
>> ===
>> "老音学生 Old Student" <
[email protected]> 撰写於邮件新闻:zTzHe.85104$%K2.35114@pd7tw1no...
>> > 或许一个问题是这样:
>> > Socket operation on non-socket
>> > 请教该如何解决?
>> > 谢谢
>> > <: 老音学生 :>
>> > ===
>> > "老音学生 Old Student" <
[email protected]> 撰写於邮件新闻:3kxHe.86153$s54.72203@pd7tw2no...
> --
> ※ Origin: SayYA 资讯站 <bbs.sayya.org>
> ◆ From: 61-230-59-195.dynamic.hinet.net