LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Qmail: send email from shell (https://www.linuxquestions.org/questions/linux-general-1/qmail-send-email-from-shell-234669/)

mikeshn 09-24-2004 05:54 AM

Qmail: send email from shell
 
How to send an email from shell using qmail 'mail' function?

Sutekh 09-30-2004 01:19 AM

from the TEST.deliver file that comes with the qmail install files

3. Local-local test: Send yourself an empty message. (Replace ``me''
with your username. Make sure to include the ``to:'' colon.)
% echo to: me | /var/qmail/bin/qmail-inject
The message will show up immediately in your mailbox, and syslog
will show something like this:
qmail: new msg 53
qmail: info msg 53: bytes 246 from <me@domain> qp 20345 uid 666
qmail: starting delivery 1: msg 53 to local me@domain
qmail: status: local 1/10 remote 0/20
qmail: delivery 1: success: did_1+0+0/
qmail: status: local 0/10 remote 0/20
qmail: end msg 53
(53 is an inode number; 20345 is a process ID; your numbers will
probably be different.)


All times are GMT -5. The time now is 03:24 AM.