Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enabling port for sendmail

Status
Not open for further replies.

kadman

IS-IT--Management
Feb 19, 2004
6
US
Hi,

How do I enable the port for the sendmail utility?

The sendmail package is already installed, and the server is running FreeBSD5.1


# netstat -all

Active Internet connections (including servers)
Proto Local Addr Foreign Addr (state)
tcp46 *.http *.* LISTEN
tcp4 *.3306 *.* LISTEN
tcp4 *.pop3 *.* LISTEN
tcp4 *.ssh *.* LISTEN
tcp6 *.ssh *.* LISTEN
 
Thanks for the reply. The sendmail is working now.

Are there any security issues that I should consider now that sendmail is running as a daemon?
 
Just make sure that your package is always up to date.
Sendmail has it share of bugs..

For some added security..

You should remove the greeting in the sendmail.cf
and if more or likely disable port 587 also.

# SMTP initial login message (old $e macro)
O SmtpGreetingMessage=$j Sendmail $v/$Z; $b

change to

# SMTP initial login message (old $e macro)
O SmtpGreetingMessage=

and remove

O DaemonPortOptions=Port=587, Name=MSA, M=E

M. Brooks
X Concepts LLC
 
My mistake. The sendmail ports are enabled on the server. However it doesn't seem like the sendmail is functioning properly.

The following are the server configurations:


# hostname
SEIRA.pacbell.net

#netstat -all

Proto Local Addr Foreign Addr (state)
tcp4 *.3306 *.* LISTEN
tcp4 *.pop3 *.* LISTEN
tcp46 *.http *.* LISTEN
tcp4 *.submission *.* LISTEN
tcp4 *.smtp *.* LISTEN
tpc4 *.ssh *.* LISTEN
tcp6 *.ssh *.* LISTEN

When I use sendmail, I get the following message in the log file:

554 Unable to determine MX for host 'SEIRA.pacbell.net'


Any suggestions?
Thanks

 
This is an issue with your DNS not sendmail.

It would be a good idea to read up on DNS as it plays a crucial role in the use of mail servers.

You would need to add an MX record to your DNS to tell whatever software is sending an e-mail to seira.pacbell.net where the e-mail server is that it should send it to.

MX records are used because if you imagine someone sending an e-mail to say person@example.com, the actual domain example.com would be pointing to the web server, not the e-mail server. The e-mail server is probably something like mailserver-01.example.com. Sending e-mail to person@mailserver-01.example.com is a bit impractical and stupid. This is where MX records come in.

If you need any help, then just get hold of me on msn daniel.briley@ntlworld.com or send me an e-mail (same address).

Also on AIM: pherikx

Regards,

Daniel Briley

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top