Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

postfix/sendmail: fatal: No recipient addresses found in message

2,577 views
Skip to first unread message

Francisco Reyes

unread,
Jul 1, 2005, 1:09:34 AM7/1/05
to
Any pointers on error
postfix/sendmail[42868]: fatal:
No recipient addresses found in message header

Archives came up empty.
The error is happening when a cron job tries to run.
The script run in the cron job works fine when run from the command line.

Running on FreeBSD 5.4
postfix 2.2.4.1

main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
mail_owner = postfix
myhostname = server05.natserv.net
mydomain = natserv.net
myorigin = $mydomain
inet_interfaces = $myhostname, localhost
mydestination = $mydomain, $myhostname
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
mynetworks = 192.168.10.0/24, 127.0.0.0/8

debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no

John Fawcett

unread,
Jul 1, 2005, 1:55:25 AM7/1/05
to
Francisco Reyes wrote:

> Any pointers on error
> postfix/sendmail[42868]: fatal:
> No recipient addresses found in message header
>
> Archives came up empty.
> The error is happening when a cron job tries to run.
> The script run in the cron job works fine when run from the command line.
>

presumably the sendmail command is being run with the -t option to extract
the receipients from the message header, but the message you are sending
does not contain any receipients (when it is generated from cron).

You should examine the input that your cron job is providing to sendmail.

John

Francisco Reyes

unread,
Jul 1, 2005, 10:03:18 AM7/1/05
to
On Fri, 1 Jul 2005, John Fawcett wrote:

> presumably the sendmail command is being run with the -t option to extract
> the receipients from the message header, but the message you are sending
> does not contain any receipients (when it is generated from cron).
>
> You should examine the input that your cron job is providing to sendmail.
> John

I had some thoughts along those lines... I was trying to add "-v" option,
but could not figure out where I need to add it to. In particular I
think it's probably in the master.cf but don't know which line I need to
add it to. Don't see a "sendmail" in that file.

Also I see that postfix sendmail is a symbolic link to mailwrapper, but
didn't see mailwrapper either in the master.cf

Tony Earnshaw

unread,
Jul 1, 2005, 10:47:43 AM7/1/05
to
fre, 01.07.2005 kl. 16.03 skrev Francisco Reyes:

> > presumably the sendmail command is being run with the -t option to extract
> > the receipients from the message header, but the message you are sending
> > does not contain any receipients (when it is generated from cron).
> >
> > You should examine the input that your cron job is providing to sendmail.
> > John
>
> I had some thoughts along those lines... I was trying to add "-v" option,
> but could not figure out where I need to add it to. In particular I
> think it's probably in the master.cf but don't know which line I need to
> add it to. Don't see a "sendmail" in that file.

Postfix's sendmail is an independent entity and doesn't have anything to
do with master.cf or much of the rest of the Postfix conglomerate, for
that matter.

> Also I see that postfix sendmail is a symbolic link to mailwrapper, but
> didn't see mailwrapper either in the master.cf

No, well you wouldn't. This is terrible and the only reason why I'm
posting at all. The whole mailwrapper idea is to couple between Sendmail
sendmail and Postfix sendmail on brain-dead Linux distros. Your
postfix.sendmail ought to be a binary and /usr/bin/sendmail should bet a
symlink to /usr/bin/sendmail.postfix. It looks horribly as if you're
using the Sendmail sendmail and something(one) has fscked up your
Postfix installation.

--Tonni

--
mail: to...@billy.demon.nl
http://www.billy.demon.nl


John Fawcett

unread,
Jul 1, 2005, 1:35:48 PM7/1/05
to
Francisco Reyes wrote:

> On Fri, 1 Jul 2005, John Fawcett wrote:
>
>> presumably the sendmail command is being run with the -t option to
>> extract
>> the receipients from the message header, but the message you are sending
>> does not contain any receipients (when it is generated from cron).
>>
>> You should examine the input that your cron job is providing to
>> sendmail.
>> John
>
>
> I had some thoughts along those lines... I was trying to add "-v"
> option, but could not figure out where I need to add it to. In
> particular I
> think it's probably in the master.cf but don't know which line I need to
> add it to. Don't see a "sendmail" in that file.
>

If you are going to change the options to sendmail you should do this
where you call sendmail from (i.e. in your script).
However I think you need to debug your script itself not the sendmail
command, since it is the script that is passing invalid input to the
sendmail command.
Try capturing that input to a file when cron runs the job and examine it.
John

0 new messages