- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx with mailrc with from= setup does not wo...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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
- 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 work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
