1751980 Members
4866 Online
108784 Solutions
New Discussion

configurin sendmail

 
Javier Ortiz Guajardo
Frequent Advisor

configurin sendmail

I´ve already configure the sendmail but when i restart the sendmail the port 25 is not working.

$ ps -ef|grep sendmail
root 19916 1 0 13:15:44 ? 0:00 sendmail: accepting connections

Maybe i forget to configure something.
Please help me to remember the steps i need to configure sendmail?

Thanks
The obstacles are those things that the people see when they left to see their goals.
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: configurin sendmail

Hi Javier:

Well, what's not working? Did you setup DNS? Did you customize '/etc/mail/sendmail.cf' and '/etc/mail/sendmail.cw'? What have you done thus far?

Regards!

...JRF...
Javier Ortiz Guajardo
Frequent Advisor

Re: configurin sendmail

i've already configure the sendmail.cf and sendmail.sw

sendmail.cf
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
Dj$w.

and the sendmail.cw with
localhost
loopback
localhost
loopback
mvixxx <== myhostname
then i restart the sendmail but i can´t send mail
this is the error in the mail lo
stat=Service unavailable

but the sendmail do not open the port 25
$ ps -ef|grep sendmail
root 19916 1 0 13:15:44 ? 0:04 sendmail: accepting connections

Thanks.


The obstacles are those things that the people see when they left to see their goals.
Steven E. Protter
Exalted Contributor

Re: configurin sendmail

Shalom,

Well if anyone can find your machine, it will accept mail.

The actual configuration steps for sendmail depend on what you need it to do.

If you need to relay mail it could be simple, a DS directive in sendmail.cf and done. If you want to process mail and forward or manage multiple domains its a more complex deal.

There is great documentation on http://www.sendmail.org

Almost everthing applies to HP-UX accept sendmail macro builing:
http://www.hpux.ws/buildmail.hpux.text

Doc:
http://docs.hp.com/en/32650-90906/ch10s07.html

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
Ivan Ferreira
Honored Contributor

Re: configurin sendmail

What is the output of:

netstat -an | grep 25

Check this option in your configuration file, ensure that you are listening on your interfaces:

O DaemonPortOptions=Name=MTA

Check /etc/rc.config.d/mailservs

export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Javier Ortiz Guajardo
Frequent Advisor

Re: configurin sendmail

All i want is send mail from my HPUX to my email account

The obstacles are those things that the people see when they left to see their goals.
Javier Ortiz Guajardo
Frequent Advisor

Re: configurin sendmail

This is the content of mailserv
export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

and i atach the output of netstat

The obstacles are those things that the people see when they left to see their goals.
James R. Ferguson
Acclaimed Contributor

Re: configurin sendmail

HI (again):

You wrote, "All I want is send mail from my HPUX to my email account". If that's true, did you define the smart relay (DS) macro in '/etc/mail/sendmail.cf':

For example:

DSexchange.xxx.com

Regards!

...JRF...
Javier Ortiz Guajardo
Frequent Advisor

Re: configurin sendmail

I´ve already configure the
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
Dj$w.mydomain.com


and the
# "Smart" relay host (may be null)
DSmydomain.com

I restart the sendmail but it still send the message
DSN: Service unavailable

Why the daemon do not open the port 25.
I read in other forum messages the output of
$ ps -ef|grep sendmail
sendmail: accepting connections on port 25

The output of my
$ps -ef|grep sendmail
root 21167 1 0 Jul 14 ? 0:04 sendmail: accepting connections on port 25

What i need to do to configure the port 25?


The obstacles are those things that the people see when they left to see their goals.
SGUX
Valued Contributor

Re: configurin sendmail

If you only want to send mail you don't need to start the sendmail-process. You do need to configure sendmail.cf and so but the sendmail-process is not needed for sending mail only for receiving.
For security-reason it is better not to start the sendmail-process if you don't need to receive mail on this server.