- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: send mail
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
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
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
тАО07-15-2005 12:07 AM
тАО07-15-2005 12:07 AM
send mail
I need to send a mail to external domain from my unix server.mail admin says it should contain some specific domain name i.e @abc.com and my server is in xyz.com doamin.
How can I do this ?
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:13 AM
тАО07-15-2005 12:13 AM
Re: send mail
If the sendmail.cf file had been configured to send out mail, one of the default settings is to attach the "From" address label.
Do you want to change the "From" address label in your mail?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:13 AM
тАО07-15-2005 12:13 AM
Re: send mail
# "Smart" relay host (may be null)
DSyourmailserver
Or - you mean your server's domain name? well - setup masquerade:
# who I masquerade as (null for no masquerading) (see also $=M)
abc.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:15 AM
тАО07-15-2005 12:15 AM
Re: send mail
DMabc.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:16 AM
тАО07-15-2005 12:16 AM
Re: send mail
Rick: Yes I want to change From address in my mails.
Geoff:
Could you explain your solution ? I am no goot in mail issues ...
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:20 AM
тАО07-15-2005 12:20 AM
Re: send mail
Example - we use an internal domain where I work - say mycorp.net
So, all my servers are: server1.mycorp.net
But, on the internet, we are mycompany.com
So, I set the DM macro to:
DMmycompany.com
When I send an email from the unix server to say, HP support - instead of being sent from: gwild@myserver.mycorp.net - it goes as gwild@mycompany.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:22 AM
тАО07-15-2005 12:22 AM
Re: send mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:26 AM
тАО07-15-2005 12:26 AM
Re: send mail
I want this unix server for mail sending only. This will send to mail server(Exchange/Domino) and then go to domain.
Is yor solution still valid for this ?
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 02:52 PM
тАО07-15-2005 02:52 PM
Re: send mail
DSmy.exchange.com
The server from which u r sending the mail should be able to resolve this exchange server name, and the exchange server should be configured to allow relaying from the unix server . And the DM should be set to DMabc.com to masquerade ur outgoing mail's domain as abc.com.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2005 03:41 AM
тАО07-16-2005 03:41 AM
Re: send mail
All our Unix servers send to the smart relay (Exchange Server), and masquerade as the "external" domain.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2005 03:56 PM
тАО07-16-2005 03:56 PM
Re: send mail
$ /sbin/init.d/sendmail stop
$ /sbin/init.d/sendmail start
You can also, run the -bt option to look at some important macro variables, for example:
After you change the $M variable, you can check on the actual value by running a test command and then enter input commands:
$j <- I think you want this one to
say: myhostname.xyz.com
$w <- I think you want this one to say: myhostname
$m <- I think you want this one to say: xyz.com
$ sendmail -bt -C/etc/mail/sendmail.cf
WARNING: local host name (carol3) is not qualified; fix $j in config file
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter
> $j
carol3
> $w
carol3
> $m
Undefined <- so I did not define subdomain.com
> $k
carol3
^D <- enter Cntrl-D to break out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 12:37 AM
тАО07-18-2005 12:37 AM
Re: send mail
I prefer to not have it running - unless you need your HP server to receive email...
Set export SENDMAIL_SERVER=0 in /etc/rc.config.d/mailservs
Then add to root's cron:
# Make sure any queued mail is delivered, as sendmail isn't a daemon anymore
39 * * * * /usr/lib/sendmail -q
Rgds...Geoff