Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with mail: ("Unable to locate mail")
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
schlesi
Apprentice
Apprentice


Joined: 16 Jun 2003
Posts: 233
Location: near Cologne/Germany, Europe

PostPosted: Thu Aug 11, 2005 6:41 pm    Post subject: Problems with mail: ("Unable to locate mail") Reply with quote

Hi,

when a cron job was executed, I get the message
Code:

sSMTP[xxx]: Unable to locate mails
SMTP[xxx]: Cannot open mail:25


and I get the messages in my dead.letter file.

As I've found out, it seems to be a problem with the local MTA or mail server.

I've installed mailx. This is my /etc/ssmtp/ssmtp.conf (without comments):
Code:

root=postmaster
mailhub=mail
rewriteDomain=


A "hostname" gives me
Code:

SchlesisNB


and a "hostname --fqdn" gives me
Code:

localhost


A "telnet localhost 25" was responded with
Code:

Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


I've read some postings to this problem, but the didn't help to solve my problem. So, what's the solution?
Back to top
View user's profile Send private message
velox
n00b
n00b


Joined: 28 Dec 2003
Posts: 22

PostPosted: Wed Aug 17, 2005 2:10 pm    Post subject: Reply with quote

Quote:
ssmtp is a secure, effective and simple way of getting mail off a system to your mail hub. It contains no suid-binaries or other dangerous things - no mail spool to poke around in, and no daemons running in the background. Mail is simply forwarded to the configured mailhost. ssmtp is extremely easy to configure and setup and is ideal for machines that do not receive any mail.


Change the mailhub to the smtp server of your provider something like:
Code:
mailhub=smtp.provider.com

And all should be fine.
Back to top
View user's profile Send private message
schlesi
Apprentice
Apprentice


Joined: 16 Jun 2003
Posts: 233
Location: near Cologne/Germany, Europe

PostPosted: Wed Aug 17, 2005 3:35 pm    Post subject: Reply with quote

I want to use my notebook offline, too, so this seems not to be a good solution.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum