This site is hosted and sponsored by hyve.com specialists in Cloud Hosting UK and VMware Hosting. If you are interested in our services please call us for chat on 0800 612 2524
Linux mail server commands - smtp service
Qmail trouble shooting#
Linux mail server commands - smtp service
#
Find Message from ID
find /var/qmail/queue/ -type f -iname $ID
Find Message from String
grep -ir "$STRING" /var/qmail/queue/mess/
How many emails in queue
/var/qmail/bin/qmail-qstat
List emails in queue
/var/qmail/bin/qmail-qread
Remove emails in queue (Remember to stop qmail before you do this service qmail stop/service qmail start)
/usr/local/sbin/qmail-remove -r -p"stringtosearch"
Yanked folder (delete when done)
/var/qmail/queue/yanked/
Delete
find /var/qmail/queue/yanked/. | xargs rm -rf
SMTP Auth log
/var/log/secure
Mail Log
/var/log/maillog
Mail Log on Plesk
/usr/local/psa/var/log/maillog
Show smtp connections:
netstat | grep smtp
Xinet conf
/etc/xinetd.conf
The Test
Connect telnet mailserver.com 25 Handshake EHLO mailserver.com Identify Sender MAIL FROM:<user@mailserver.com> Identify Recipient RCPT TO:<user@mailserver.com> Provide Message Body DATA subject:subject goes here this is my test message sincerely, user .
- Check this out:
If you want all mail to unknown local addresses to be delivered to the void, you can do this:
echo '#' > /var/qmail/alias/.qmail-default
Back to Linux
Add new attachment
Only authorized users are allowed to upload new attachments.
«
This page (revision-14) was last changed on 22-Feb-2012 12:13 by Hyve Support