Article 6N9QX mutt sending messages with odd From: address

mutt sending messages with odd From: address

by
mfoley
from LinuxQuestions.org on (#6N9QX)
The Tomcat user is sending emails using mutt. This is an example of the script used:
Code:#!/bin/bash
EMAIL="Doe, John C. <jdoe@gmail.com>" mutt -F /home/tomcat/contactUs.muttrc -s "test message 2" -b sysadmin@mydom.org info <<EOF
Member Name: Doe, John C.
Member Email Address: jdoe@gmail.com
Member From: Galena, OH
Status: pension
Visits website: Frequently (456 logins since 07/26/2009)

Testing - Mark, ignore

EOFand ...
Code:#cat /home/tomcat/contactUs.muttrc:
source /home/tomcat/portalAlias

# cat /home/tomcat/portalAlias
alias info info@mydom.orgHere's the message as delivered to info@mydom.org recipients:
Code:From tomcat@mydom.org Tue Jun 4 15:04:08 2024
Date: Tue, 4 Jun 2024 15:03:57 -0400
From: Tomcat user <jdoe@mydom.org>
To: info@mydom.org
Subject: test message 2

Member Name: Doe, John C.
Member Email Address: jdoe@gmail.com
Member From: Galena, OH
Status: pension
Visits website: Frequently (456 logins since 07/26/2009)

Testing - Mark, ignoreNotice that the From: name is "Tomcat user" (the GECOS comment field of /etc/passwd for user tomcat) not "Doe, John C.", and email address is jdoe@mydom.org, not jdoe@gmail.com.

The extra strange thing is this foopalation seem to only affect gmail recipients. Here is another recipient message generated by the exact same program that creates the script:
Code:From tomcat@mydom.org Mon Jun 3 09:12:23 2024
Date: Mon, 3 Jun 2024 09:12:14 -0400
From: Harry Smith <hsmith@dps.ohio.gov>
To: info@mydom.org
Subject: ID/password

Member Name: Harry Smith
Member Email Address: hsmith@dps.ohio.gov
Member From: Mansfield, Ohio, Unites States
Status: Active Member
Visits website: Seldom

Requesting my ID so I can reset my PW.

Thank you in advance.This one is correct. I'm at a loss to explain why the 1st message (John Doe's) is messing up. The muttrc file looks fine, but those parameters are not reflected in the message received.

Maybe the "gmail recipients only" thing is a coincidence. I'll save all mutt scripts going forward so I can check for differences.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments