View previous topic :: View next topic |
Author |
Message |
schlesi Apprentice
Joined: 16 Jun 2003 Posts: 233 Location: near Cologne/Germany, Europe
|
Posted: Thu Aug 11, 2005 6:41 pm Post subject: Problems with mail: ("Unable to locate mail") |
|
|
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
and a "hostname --fqdn" gives me
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 |
|
|
velox n00b
Joined: 28 Dec 2003 Posts: 22
|
Posted: Wed Aug 17, 2005 2:10 pm Post subject: |
|
|
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 |
|
|
schlesi Apprentice
Joined: 16 Jun 2003 Posts: 233 Location: near Cologne/Germany, Europe
|
Posted: Wed Aug 17, 2005 3:35 pm Post subject: |
|
|
I want to use my notebook offline, too, so this seems not to be a good solution. |
|
Back to top |
|
|
|