ssmtp:cant open mail :25.

Asked by Anshiki Saxena

I have installed source package ssmtp_2.64.orig.tar.bz2 and according to the instructions I have installed this. Now when i run the following command sudo ssmtp -v email address, then after entering data it shows the error ssmtp:cant open mail:25:
I have tried almost all possible solutions given on net. but none of them is working. Pease if anybody could help me out.

here is my ssmtp.conf

#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
#root=postmaster
<email address hidden>
# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and you mailhub is so named.
mailhub=smtp.gmail.com:587
# Where will the mail seem to come from?
rewriteDomain=gmail.com
<email address hidden>
AuthPass=9456045410
UseTLS=YES
UseSTARTTLS=YES

# The full hostname
hostname=anshiki-HP-2000-Notebook-PC

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ssmtp Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I hope you didn't just put your real email password in your original post

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Why did you install from the source? If you have an Ubuntu system, you should install the pre-compiled package with the package management tools (e.g. apt-get or ubuntu-software).

Revision history for this message
Anshiki Saxena (anshiki) said :
#3

Actually i have to use it as a library in some C programming code to send
mail through ssmtp. So for that i need .o .c n .h files.

On 30 May 2017 1:19 p.m., "Manfred Hampl" <
<email address hidden>> wrote:

> Your question #636318 on ssmtp in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ssmtp/+question/636318
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Why did you install from the source? If you have an Ubuntu system, you
> should install the pre-compiled package with the package management
> tools (e.g. apt-get or ubuntu-software).
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/ssmtp/+
> question/636318/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ssmtp/+question/636318
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

It seems that the ssmpt.conf file is not used.
What are the file protection settings for ssmtp.conf?
Can you try enabling debugging?

Can you help with this problem?

Provide an answer of your own, or ask Anshiki Saxena for more information if necessary.

To post a message you must log in.