- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail relaying to outside mail server.
Operating System - HP-UX
1753977
Members
7479
Online
108811
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
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
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
09-24-2009 06:56 AM
09-24-2009 06:56 AM
Sendmail relaying to outside mail server.
I am trying to setup sendmail to relay to an outside mail service "mail.mycompany.com". It requires a login and password, how do I set this up?
Any help would be greatly appreciated!
Thanks Tim
Any help would be greatly appreciated!
Thanks Tim
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2009 07:05 AM
09-24-2009 07:05 AM
Re: Sendmail relaying to outside mail server.
http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html
Very briefly, here's the method given there (assuming that "sendmail" is a wrapper for postfix):
1. Assume the ISP access URL, username, and password are "smtp.isp.com", "uname", and "pwd". Append the line
Code:
smtp.isp.com uname:pwdto the file /etc/postfix/sasl_passwd.
2. Create the file /etc/postfix/sasl_passwd.db with the command
Code:
postmap hash:/etc/postfix/sasl_passwd3. Insert the lines
Code:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =4. Reload postfix with
Code:
postfix reloadThere's one more essential step for getting the mail command to work that does not involve postfix. In your php5.conf file, insert the line
Code:
sendmail_path = sendmail -t -i -f myaddr@myisp.netWithout this, the mail relay at your ISP will almost certainly attempt to send an acknowledgment,
which will bounce and cause your mail not to be sent.
Very briefly, here's the method given there (assuming that "sendmail" is a wrapper for postfix):
1. Assume the ISP access URL, username, and password are "smtp.isp.com", "uname", and "pwd". Append the line
Code:
smtp.isp.com uname:pwdto the file /etc/postfix/sasl_passwd.
2. Create the file /etc/postfix/sasl_passwd.db with the command
Code:
postmap hash:/etc/postfix/sasl_passwd3. Insert the lines
Code:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =4. Reload postfix with
Code:
postfix reloadThere's one more essential step for getting the mail command to work that does not involve postfix. In your php5.conf file, insert the line
Code:
sendmail_path = sendmail -t -i -f myaddr@myisp.netWithout this, the mail relay at your ISP will almost certainly attempt to send an acknowledgment,
which will bounce and cause your mail not to be sent.
Support Fatherhood - Stop Family Law
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