From owner-freebsd-questions@freebsd.org Sun Oct 8 05:59:51 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D056E286C3 for ; Sun, 8 Oct 2017 05:59:51 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from dnvrco-cmomta02.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 018C0668CE for ; Sun, 8 Oct 2017 05:59:50 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [192.168.0.2] ([76.183.153.52]) by cmsmtp with ESMTPA id 14cme1QZxZeM714cpesIXY; Sun, 08 Oct 2017 05:59:44 +0000 Date: Sun, 08 Oct 2017 00:59:39 -0500 From: Paul Schmehl Reply-To: Paul Schmehl To: FreeBSD Questions cc: mutt-users@mutt.org Subject: Scripting problem Message-ID: <7AB396F429EEB6890100F082@Pauls-MacBook-Pro.local> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-CMAE-Envelope: MS4wfI8EerNuLiAiRahvH2RnaoE+sdwLki2QmFxwKxO2C9Hr8RK+mbydavd/QLoUez/kGmz10KhhBDMo7PVjP1vRCOV4+BXAZ/cQE2n8Vu/W5NEh1GL4swbG qbVpekzMu2yULGfoG2ZvavmDk9A65/Xe0vZy+pQDmkiDW0jC1AaRLq3lrQpCb3wVJYJoEKVhMtEqu4k59B1azxXy9/gkFWjJvbQ= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2017 05:59:51 -0000 I'm writing a bash script to create a db backup and email it to me once a day. I'm munged some parts to not reveal details I'm having a problem with this line: /usr/local/bin/mutt -s $SUBJECT -i $MESSAGE -a $FILENAME -- pschmehl@tx.rr.com < /dev/null Right before this line are these lines: MESSAGE="path/to/message.txt" ADDRESS="pschmehl@mydomain" SUBJECT="Today's db backup" >From the commandline this runs fine, but the script returns an error: Error sending message, child exited 67 (User unknown.). Could not send the message. The mail is sent, and when it's received, the subject line is Today's. When I look in the maillog, mutt tried to send email to db@hostname and backup@hostname. I changed the subject to Backup, and the error goes away. I'm running FreeBSD 10.3-RELEASE and the script is written in bash. Why would mutt do this? Paul Schmehl, Retired As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell