Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I already have Ssmtp installed and working in a Centos 5.7 machine with Gmail configured.

I can send mails in th shell without problems.

Now i want to use the ssmtp to allow a web app (installed in the same machine) to send mails but for do this i have to find a way to ssmtp "hears" in the port 25 (or any other).

There is a way to do this? There is another simple alternative to ssmtp who allows to send mail using localhost:25?


share|improve this question

For a web app to send mail, I'd recommend just using the "mail" command line. pipe/redirect/print the mail to the input of mail, command line.

share|improve this answer

If you are using a webapp for sending mails the best way is to specify the conectivity for the app, you must specify the protocol ,smtp_host, port, user and password if what you want its to send mails through an account. If you want to use smpt of gmail use ssl://

If u dont know the port of where smpt you should scan your ports (like with an nmap)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.