Seve Ho wrote:Thank. 'kill' can clean up the socket.
I am trying to use Clamav-milter with sendmail. I found it cannot clean up it socket file(.sock) opened after killing the milter process.(I use kill -9 to kill the process, is there other prosper way to stop the milter?) And this make me have to remove the .sock file first before restarting. That is not convenient. So i want to ask if this possible to run milter on a TCP port but not on socket?
Don't use `kill -9`. Just a `kill` would have done, and probably cleaned up the socket.
See: http://www.sektorn.mooo.com/era/unix/award.html#uuk9letter
however, I am still interested to use milter over tcp rather than ".sock" file.
I try to start milter with :
clamav-milter --noreject -l --server=127.0.0.1 inet:[EMAIL PROTECTED]
And my sendmail.cf have following:
# Input mail filters O InputMailFilters=clmilter
# Milter options
#O Milter.LogLevel
O Milter.macros.connect=j, _, {daemon_name}, {if_name}, {if_addr}
O Milter.macros.helo={tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}
O Milter.macros.envfrom=i, {auth_type}, {auth_authen}, {auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr}
O Milter.macros.envrcpt={rcpt_mailer}, {rcpt_host}, {rcpt_addr}
Xclmilter, S=inet:[EMAIL PROTECTED], F=T, T=S:4m;R:4m
When I start sendmail, i can no longer send or receive mail.
And I found incoming mail generate some maillog as follow:
Mar 8 16:43:59 mail clamav-milter[10137]: Access Denied: Host Unknown (pc156.cash.com.hk)
Mar 8 16:43:59 mail sm-mta[10269]: i288hx5t010269: Milter: connect: host=pc156.cash.com.hk, addr=210.177.206.156, temp failing commands.
Could anyone provide any clues on this?
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users