how to change port in sendmail in fedora

2006-10-21 2:12 am
I have a server using Fedora FC5. It has sendmail 8.13.7 installed.
The problem is my ISP blocked port 25. I can't send any mail from the server. I got a message "Deferred: Connection timed out with mail.xxxxx.net."
I have read some articles said the problem is possible to be solved by changing the port from 25 to 587.
Q1 How to setup the sendmail.
Q2 Could I use the other smtp such as gmail. It is ok if the return address is fixed.

回答 (1)

2006-11-03 2:34 am
✔ 最佳答案
Below the dnl define(`SMART_HOST', `......') in /etc/mail/sendmail.mc, add the following lines:

define(`RELAY_MAILER_ARES', `TCP mail.xxxx.net 587')
define(`ESMTP_MAILER_ARES', `TCP mail.xxxx.net 587')

beware RELAY_MAILER_ARES, ESMTP_MAILER_ARES and TCP ..... 587 should be start with the single quote on ~ Key (about the Tab Key) and end with the normal single quote (on the double quote key beside ENTER key)

After edit the file, type make under directory /etc/mail and then restar the sendmail with /etc/init.d/sendmail restart
Refer http://www.sendmail.org/faq/section3.html#3.39 for detail

You can try Gmail, but I suppose need to use SMTP AUTH and SSL/TLS to connect gmail. Refer http://www.sendmail.org/~ca/email/auth.html and http://www.sendmail.org/~ca/email/starttls.html for the detail description.


收錄日期: 2021-04-18 20:18:15
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061020000051KK02683

檢視 Wayback Machine 備份