I am setting up qmail and chose to use /bin/mail.
There are two rc/boot script variations for /bin/mail in /var/qmail/boot:
1. which uses /bin/mail with -r and -d parameters
2. which uses /bin/mail with -f and -d parameters
I cannot use the first option since my /bin/mail does not take a
parameter "-r".
I tried the second option, here is my rc script:
----> exec env - PATH="/var/qmail/bin:$PATH" \
----> qmail-start \
----> '|preline -f /bin/mail -f "${SENDER:-MAILER-DAEMON}" -d "$USER"' \
----> splogger qmail
Now, when I issue the command:
echo to: myself | /var/qmail/bin/qmail-inject
... this is what shows up in my maillog
Feb 18 18:13:49 machine qmail: 919379629.233753 status: local 1/10 remote 0/20
Feb 18 18:13:49 machine qmail: 919379629.253407 delivery 3: deferral:
Cannot_give_-f_and_people_to_send_to./
It appears that my /bin/mail cannot be used with -f for sending mail (the man page
states "-f Read in the contents of your mbox").
I am running linux - redhat5.1.
Does anyone know how to use /bin/mail on redhat5.1?? Has anyone had
similar problems??
Thanks in advance,
Mark