PDA

View Full Version : Cannot Send Out email


Anonymous
09-17-2004, 02:05 PM
Hi, I completed the installation without any errors according to the test scrip but when I tried sending some messages from the qmail server using the following command line, it does not go anywhere.

:x

#sendmail -i email@yahoo.com < install.log

All the messages seem to be in the qmail queue:

[root@jose control]# qmailctl stat
/service/qmail-send: up (pid 4097) 3547 seconds
/service/qmail-send/log: up (pid 4108) 3546 seconds
/service/qmail-smtpd: up (pid 4096) 3547 seconds
/service/qmail-smtpd/log: up (pid 4109) 3546 seconds
/service/qmail-pop3d: up (pid 4098) 3547 seconds
/service/qmail-pop3d/log: up (pid 4107) 3546 seconds
messages in queue: 32
messages in queue but not yet preprocessed: 32
[root@jose control]#

[root@sanjose control]# lsof -i | grep LISTEN
portmap 1396 rpc 4u IPv4 1412 TCP *:sunrpc (LISTEN)
rpc.statd 1415 rpcuser 6u IPv4 1447 TCP *:32768 (LISTEN)
cupsd 1520 root 0u IPv4 1784 TCP sanjose.esudo.com:ipp (LISTEN)
sshd 1557 root 3u IPv4 1808 TCP *:ssh (LISTEN)
xinetd 1571 root 5u IPv4 1855 TCP sanjose.esudo.com:32769 (LISTEN)
tcpserver 4096 vpopmail 3u IPv4 21098 TCP *:smtp (LISTEN)
tcpserver 4098 root 3u IPv4 21081 TCP *:pop3 (LISTEN)
[root@sanjose control]#

Thanks in advance for your help.

esarakaitis
09-18-2004, 11:54 AM
what do the error logs say

Anonymous
09-18-2004, 12:34 PM
Thanks for your interest in my issue.

I am not sure where to look, here is a start and I have not noticed any error:


[root@sanjose qmail-send]# tail current
@40000000414c5ce005407d74 warning: unable to stat mess/200/907500
@40000000414c5ce005408d14 warning: unable to stat mess/201/907501
@40000000414c5ce005409cb4 warning: unable to stat mess/202/907502
@40000000414c5ce00540ac54 warning: unable to stat mess/204/907504
@40000000414c5ce00540bbf4 warning: unable to stat mess/205/907505
@40000000414c5ce00540cb94 warning: unable to stat mess/206/907506
@40000000414c5ce00541256c warning: unable to stat mess/207/907507
@40000000414c5ce00541350c warning: unable to stat mess/208/907508
@40000000414c5ce0054144ac warning: unable to stat mess/209/907509
@40000000414c5ce00541544c warning: unable to stat mess/210/907510
[root@sanjose qmail-send]#


[root@sanjose qmail-smtpd]# tail current
@40000000414b1d7134634eec tcpserver: status: 0/30
@40000000414b953e1617d87c tcpserver: status: 0/30
@40000000414b9b7b0c87830c tcpserver: status: 0/30
@40000000414bc89a0748e41c tcpserver: status: 0/30
@40000000414bca4b34437694 tcpserver: status: 0/30
@40000000414bcacb1986cc34 tcpserver: status: 1/30
@40000000414bcacb1986ef5c tcpserver: pid 1844 from 203.59.3.81
@40000000414bcacb30194544 tcpserver: ok 1844 sanjose.esudo.com:192.168.100.100:25 domain-web-01.iinet.net.au:203.59.3.81::49079
@40000000414bcacd271ccb64 tcpserver: end 1844 status 256
@40000000414bcacd271cee8c tcpserver: status: 0/30

m-l-z
09-19-2004, 12:00 AM
Looks like your queue might be pooched, I believe there is a script here on qmailrocks that rebuilds the mail queue. I know you can get funky errors like that if the permissions are wrong as well. what are the permissions on your /var/qmail/queue directory?

Anonymous
09-20-2004, 01:36 AM
[root@sanjose openprotect]# cd /var/qmail/queue
[root@sanjose queue]# ls -al
total 44
drwxr-x--- 11 qmailq qmail 4096 Sep 15 17:24 .
drwxr-xr-x 12 root qmail 4096 Sep 16 11:37 ..
drwx------ 2 qmails qmail 4096 Sep 19 08:18 bounce
drwx------ 213 qmails qmail 4096 Sep 15 17:24 info
drwx------ 2 qmailq qmail 4096 Sep 19 22:02 intd
drwx------ 213 qmails qmail 4096 Sep 15 17:24 local
drwxr-x--- 2 qmailq qmail 4096 Sep 15 17:24 lock
drwxr-x--- 213 qmailq qmail 4096 Sep 15 17:24 mess
drwx------ 2 qmailq qmail 4096 Sep 19 22:02 pid
drwx------ 213 qmails qmail 4096 Sep 15 17:24 remote
drwxr-x--- 2 qmailq qmail 4096 Sep 19 22:02 todo
[root@sanjose queue]#

How should I rebuild if this is a problem?

m-l-z
09-20-2004, 02:23 AM
At a glance it looks about right. I would try the file at http://www.qmailrocks.org/extra/ for rebuilding the queue.

Anonymous
09-23-2004, 05:51 PM
Hi, I have all these messages sitting in the qmail-send/current files? Can I delete them or remove them without affecting new qmail function?

TIA,
esudo

m-l-z
09-23-2004, 09:29 PM
You probably won't need to worry much about it, multilog rotates them for you automagically.

Anonymous
09-24-2004, 12:18 PM
How long should I wait for the automatic clean up to take place? It has been three days, and they are still waiting to be proceess?

[root@sunnyvale pz]# qmailctl stat
/service/qmail-send: up (pid 15415) 88917 seconds
/service/qmail-send/log: up (pid 15419) 88917 seconds
/service/qmail-smtpd: up (pid 15422) 88917 seconds
/service/qmail-smtpd/log: up (pid 15427) 88917 seconds
/service/qmail-pop3d: up (pid 15430) 88917 seconds
/service/qmail-pop3d/log: up (pid 15431) 88917 seconds
messages in queue: 67
messages in queue but not yet preprocessed: 67
[root@sunnyvale pz]#

[root@sunnyvale pz]# tail /var/log/qmail/qmail-send/current
@40000000415437c52df5963c warning: unable to stat mess/194/5914735
@40000000415437c52df59a24 warning: unable to stat mess/195/5914736
@40000000415437c52df5adac warning: unable to stat mess/196/5914737
@40000000415437c52df5b194 warning: unable to stat mess/197/5914738
@40000000415437c52df5b57c warning: unable to stat mess/198/5914739
@40000000415437c52df5b964 warning: unable to stat mess/199/5914740
@40000000415437c52df5bd4c warning: unable to stat mess/200/5914741
@40000000415437c53578cdfc delivery 208: success: 192.168.100.101_accepted_message./Remote_host_said:_250_ok_1096038022_qp_12131/
@40000000415437c53578dd9c status: local 0/10 remote 0/255
@40000000415437c53578e56c end msg 5914742


thanks for your input and suggestions.