- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail - sending to different server with sa...
Operating System - HP-UX
1753727
Members
4638
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО05-07-2004 09:05 AM
тАО05-07-2004 09:05 AM
Sendmail - sending to different server with same hostname
Hi,
I'm hosting a website, x.com on my machine, but mail for that domain is being hosted on another machine (i.e. the MX record is differnet then the A record for x.com). The problem is when I try to send mail to x.com from the website (via php) it never makes it off the website machine. It thinks it should deliver it locally instead of the real mail server which is a differnet machine. How can I configure sendmail to send *@x.com mail to the other server instead of itself?
Thanks in advance.
-John
I'm hosting a website, x.com on my machine, but mail for that domain is being hosted on another machine (i.e. the MX record is differnet then the A record for x.com). The problem is when I try to send mail to x.com from the website (via php) it never makes it off the website machine. It thinks it should deliver it locally instead of the real mail server which is a differnet machine. How can I configure sendmail to send *@x.com mail to the other server instead of itself?
Thanks in advance.
-John
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2004 09:50 AM
тАО05-07-2004 09:50 AM
Re: Sendmail - sending to different server with same hostname
on your web server, which is the originator of your outgoing email message, check the sendmail.cf file (under /etc/mail) and see if you can find a line which starts with letters
DS
Since you said, it is trying to send it locally, most probably you do not have the line with DS, which is the smart relay server directive.
DS
Since you said, it is trying to send it locally, most probably you do not have the line with DS, which is the smart relay server directive.
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2004 10:48 AM
тАО05-07-2004 10:48 AM
Re: Sendmail - sending to different server with same hostname
Thanks Mel. I did not have DS set, so I set it to another domain, say y.com (I host several domains on this machine). However, mail to x.com is still not making it off the box.
Just so you know, mail to any other domain(i.e., besides x.com and y.com) works.
Just so you know, mail to any other domain(i.e., besides x.com and y.com) works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2004 11:21 AM
тАО05-07-2004 11:21 AM
Re: Sendmail - sending to different server with same hostname
You need to take a look at the file /var/adm/maillog
It should show some problems.
sendmail -v -q
Will give you verbose output on the mailq(thats a command to) of the server.
Try an interactive send:
sendmail -v -d8.99 -d38.99 goodguy@x.com
type some text
.
To forward a single domain in sendmail
/etc/mail/virtusertable
@x.com mailserver
/etc/mail/genericstable
mailserver @x.com
You'll need this script to build the sendmail macros on HP-UX to make this happen.
http://www.hpux.ws/buildmail.hpux.text
Some tweaking will be required, but this can work. The target server needs to have the sending server in /etc/mail/access like this:
ip_address_sending_server RELAY
Example
192.168.0.40 RELAY
If its also hpux, you'll need to build sendmail macros to build this functionality into sendmail.cf
SEP
It should show some problems.
sendmail -v -q
Will give you verbose output on the mailq(thats a command to) of the server.
Try an interactive send:
sendmail -v -d8.99 -d38.99 goodguy@x.com
type some text
.
To forward a single domain in sendmail
/etc/mail/virtusertable
@x.com mailserver
/etc/mail/genericstable
mailserver @x.com
You'll need this script to build the sendmail macros on HP-UX to make this happen.
http://www.hpux.ws/buildmail.hpux.text
Some tweaking will be required, but this can work. The target server needs to have the sending server in /etc/mail/access like this:
ip_address_sending_server RELAY
Example
192.168.0.40 RELAY
If its also hpux, you'll need to build sendmail macros to build this functionality into sendmail.cf
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP