Mail Problems

Mail Problems

Post by Bernard Mu » Wed, 31 Dec 2003 06:43:25

Since I re-installed Linux I can neither send nor receive mail in Mutt.
So in the hope that someone can spot the error(s) this is the info.

The server is
Incoming mail:
Outgoing Mail:

(1) When I press 'G' I get the following:

1 message for ber_murphy at (886 octets).
reading message XXXX@XXXXX.COM :1 of 1 (886 octets) fetchmail: SMTP error: 450 <ber_murphy@localhost>: User unknown in local recipient table
not flushed
Press any key to continue...

This is my Config.file:

# Configuration created Mon Dec 29 20:48:23 2003 by fetchmailconf
set postmaster "bernard"
set bouncemail
set no spambounce
set properties ""
poll with proto POP3
user 'ber_murphy' there with password 'XXXXXXX' is 'ber_murphy' here options keep

(2) Mail is not sent and here is my ssmtp.conf file:

# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
# The person who gets all mail for userids < 500

# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named
# The example will fit if you are in and your mailhub is so named.

# Example for SMTP port number 2525
# mailhub=mail.your.domain:2525
# Example for SMTP port number 25 (Standard/RFC)
# mailhub=mail.your.domain
# Example for SSL encrypted connection
# mailhub=mail.your.domain:465

# Where will the mail seem to come from?

# The full hostname $echo $HOSTNAME

# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.

# Use SSL/TLS to send secure messages to server.

# Use SSL/TLS certificate to authenticate against smtp host.

# Use this RSA certificate.

Appreciate any assistance.

Mail Problems

Post by Andrei Vor » Wed, 31 Dec 2003 16:54:35

I hope you realize that this problem is not from mutt, but from
fetchmail. And I hope you read man fetchmail. Usually fetchmail relies
on sendmail to deliver received messages to users mailbox. And your
error shows that your sendmail does not know how to do it. There are 2
ways to fix it. 1. Configure sendmail (or whatever MTA you are using in
place of it). 2. Use 'mda' directive in fetchmail configuration file
which shall bypass MTA completely.

Are you sure that mutt is configured to use ssmtp? What says
'set sendmail' line from your .muttrc?



Mail Problems

Post by Bernard Mu » Wed, 31 Dec 2003 19:00:28

There are 2

Thanks I will investigate that.

set sendmail="/etc/ssmtp" #how to send mail

Thanks for taking the troubvle to reply


Mail Problems

Post by Andrei Vor » Thu, 01 Jan 2004 00:03:26

Is this a binary file? I believe /etc/ssmtp is the name of the
directory. RTFM on what shall be specified as 'sendmail' value.


Mail Problems

Post by Bernard Mu » Thu, 01 Jan 2004 04:16:59

Thanks very much - I got it going at last.
I can now send & receive mails through Mutt.
Incoming mail goes into /var/spool/mail/bernard

I wanted to filter & redirect mail into ~/Mail/Inbox so I
tried a small .procmailrc file to get started but have
come up with this problem having sent myself a mail.

1 message for ber_murphy at (908 octets).
reading message XXXX@XXXXX.COM :1 of 1 (908 octets)
procmail: Suspicious rcfile "/home/bernard/.procmailrc"
procmail: Couldn't read "/home/bernard/.procmailrc"
Press any key to continue...

My simple .procmailrc is as follows:

# .procmailrc
# Internal settings
# Default program & file locations
LOGFILE=$MAILDIR/log `date +%y-%m-%d`

# MyMail
* ^(From|To).* XXXX@XXXXX.COM

* > 20000

#Accept all the rest to your default mailbox

I presumed that mail coming into /var/spool/mail for me would be
re-directed into ~/Mail/Inbox with the 'Inbox' being
automatically made in the 'Mail' folder????

Appreciate any ideas.
The permissions for .procmailrc are: rw-rw-r--


Mail Problems

Post by Scott B » Thu, 01 Jan 2004 05:39:35

I think that message is caused by too-lax permissions for your
.procmailrc file. Set the permissions to
by typing
chmod 600 .procmailrc
at a shell prompt.

There is a sample procmailrc file included with the SpamBouncer
and I have included some information below from that file.

Creates huge logfiles. Change to VERBOSE=off if you are not
interested in having procmail log every step it takes.

Make sure that directory exists.

You might like the following recipe, which would create a backup of
the most recent 100 emails in case something goes wrong (you should
create the directory ${MAILDIR}/backup):
:0 c

:0 ic
| cd backup && rm -f dummy `ls -t msg.* | sed -e 1,100d`

If you use Maildir format mailboxes, your .procmailrc references to
your mailboxes should end with a / like this (from my .procmailrc

In my .muttrc file, I have (among other things):
set mbox_type = Maildir
set spoolfile = +inbox

Scott B.
Authors of all-lower-case posts are usually "added to my killfile."

Mail Problems

Post by Bernard Mu » Thu, 01 Jan 2004 06:54:58

That was very helpful - thank you.
Things seem to work ok now and I will continue to

Thanks again to all for kind assistance.