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 iol.ie
Incoming mail: gpo.iol.ie
Outgoing Mail: mail.iol.ie

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

1 message for ber_murphy at gpo.iol.ie (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 gpo.iol.ie 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
postmaster=ber_murphy

# 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 your mailhub is so named.
mailhub=mail.iol.ie

# 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?
#rewriteDomain=

# The full hostname $echo $HOSTNAME
hostname=iol.ie

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

# Use SSL/TLS to send secure messages to server.
#UseTLS=YES

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

# Use this RSA certificate.
#TLSCert=/etc/ssl/certs/ssmtp.pem

Appreciate any assistance.
Thanks
Bern
 
 
 

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?

Andrei

 
 
 

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


Bernard
 
 
 

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.

Andrei
 
 
 

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.

Quote........
1 message for ber_murphy at gpo.iol.ie (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"
flushed
Press any key to continue...
Unquote..........

My simple .procmailrc is as follows:

# .procmailrc
# Internal settings
SHELL=/bin/bash
LINEBUF=4096
PATH=/bin:/usr/bin:/usr/local/bin
VERBOSE=on
# Default program & file locations
MAILDIR=$HOME/Mail
DEFAULT=$HOME/Mail/Inbox
LOGFILE=$MAILDIR/log `date +%y-%m-%d`
FORMAIL=/usr/bin/formail
RM=/bin/rm
SENDMAIL=/usr/sbin/sendmail

# MyMail
:0
* ^(From|To).* XXXX@XXXXX.COM
$MAILDIR/Inbox

:0
* > 20000
/dev/null



#Accept all the rest to your default mailbox
:0:
${DEFAULT}

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--

Thanks
Bernard
 
 
 

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
-rw-------
by typing
chmod 600 .procmailrc
at a shell prompt.

There is a sample procmailrc file included with the SpamBouncer
http://www.yqcomputer.com/
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
backup

: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
file):
DEFAULT=inbox/

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
experiment.

Thanks again to all for kind assistance.


Bernard