- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- mailx with mailrc with from= setup does not work
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-23-2020 12:48 AM
10-23-2020 12:48 AM
mailx with mailrc with from= setup does not work
Hi,
Currently all the mailx send out from the server from all user have the following format:
username@locahost.FQDN
We are trying to setup mailx to send out email to have the email all from no-reply-servername@domainA.com.
username@localhost.FQDN ==> no-reply-servername@domainA.com
We have edited the sendmail.cf to have localhost change to @domainA.com successfully.
However we are not manage to change username ==> no-reply-servername.
By the way, we don't one to use the mailx -r option as we have to change all script which are everywhere.
In our .mailrc file we have the following
set smtp=smtp://mail.gr.domainA.com
set from=no-reply-servername@domainA.com
set replyto=no-reply-servername@domainA.com
when we tried to send using following command
mailx -d -s "Testing" first.last@domainA.com
assign(MAILRC)=/root/.mailrc
assign(smtp)=smtp://mail.gr.domainA.com
value(autoprint)=
value(flipr)=
assign(from)=no-reply-servername@domainA.com
value(autoprint)=
value(flipr)=
assign(replyto)=no-reply-servername@domainA.com
value(autoprint)=
assign(smtp)=smtp://mail.gr.domainA.com
value(autoprint)=
value(flipr)=
assign(from)=no-reply-servername@domainA.com
value(autoprint)=
value(flipr)=
assign(replyto)=no-reply-servername@domainA.com
value(autoprint)=
It is able to read the mailrc file with the field from, however when the email is send out it have only
username@domainA.com.
Any idea how to make it work?
We tried the aliases setup, genericstable however it does not work.
- Tags:
- mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-23-2020 04:55 AM
10-23-2020 04:55 AM
Re: mailx with mailrc with from= setup does not work
COnfigure genericstable and it should work.
rebuild the genericstable in the sendmail.cf with the /usr/newconfig/etc/mail/cf/cf/gen_cf setup and theh copy sendmail.gen.cf file to /etc/mail/sendmail.cf and reconfigure sendmail again with DS and DM entry and then create a file called genericstabel and provide the appropraite entry and then rebuild the genericstable database as below
makemap dbm /etc/mail/genericstable < /etc/mail/genericstable
and then restart the senemail service and then recheck again
if still not working, kindly raise a consultancy ticket with HPE as it is a configuration and system admin task
I am a HPE Employee
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP