Mutt & sendmail configuration problems

Oliver Fuchs oliverfuchs at onlinehome.de
Sun Mar 20 08:50:08 PST 2005


On Sun, 20 Mar 2005, Ulf Magnusson wrote:

> I'm trying to set up sendmail to route outgoing mail to an external SMTP server. I need this for Mutt, which doesn't have its own means of transfering mail and relies on whatever MTA the system provides. I found out about sendmail's SMARTHOST capability and added this line to my <host>.mc configuration file (built by 'cd /etc/mail && make && make install'):
> 
> define(`SMART_HOST', `smtp.liu.se')

Hi,

the FEATURE has to be:

define(`SMART_HOST',	`[smtp.liu.se]')dnl

Optional you can use the authinfo-file feature:

FEATURE(`authinfo')dnl

If so create a file /etc/mail/authinfo wiht something like this:

AuthInfo:smtp.liu.se "U:yourusername" "P:yourpassword"

Go to /etc/mail and run as root:
makemap hash authinfo < authinfo
chmod 600 authinfo authinfo.db

Oliver


> 
> I then installed the changes with 'make && make install && make restart'. Now, whenever I try to send mail from Mutt, I get back the following failure notice:
> 
> 
> Date: Sun, 20 Mar 2005 13:33:21 +0100 (CET)
> From: Mail Delivery Subsystem <MAILER-DAEMON>
> To: <ulf at obygden>
> Subject: Returned mail: see transcript for details
> Auto-Submitted: auto-generated (failure)
> 
> [-- Bilaga #1 --]
> [-- Typ: text/plain, Kodning: 7bit, Storlek: 0,5K --]
> 
> The original message was received at Sun, 20 Mar 2005 13:33:20 +0100 (CET)
> from localhost [127.0.0.1]
> 
>    ----- The following addresses had permanent fatal errors -----
> <ulfma629 at student.liu.se>
>     (reason: 504 <ulf at obygden>: Sender address rejected: need fully-qualified address)
> 
>    ----- Transcript of session follows -----
> ... while talking to smtp.liu.se.:
> >>> DATA
> <<< 504 <ulf at obygden>: Sender address rejected: need fully-qualified address
> 554 5.0.0 Service unavailable
> <<< 554 Error: no valid recipients
> 
> [-- Bilaga #2 --]
> [-- Typ: message/delivery-status, Kodning: 7bit, Storlek: 0,4K --]
> 
> Reporting-MTA: dns; obygden
> Received-From-MTA: DNS; localhost
> Arrival-Date: Sun, 20 Mar 2005 13:33:20 +0100 (CET)
> 
> Final-Recipient: RFC822; ulfma629 at student.liu.se
> Action: failed
> Status: 5.5.4
> Remote-MTA: DNS; smtp.liu.se
> Diagnostic-Code: SMTP; 504 <ulf at obygden>: Sender address rejected: need
> +fully-qualified address
> Last-Attempt-Date: Sun, 20 Mar 2005 13:33:21 +0100 (CET)
> 
> [-- Bilaga #3 --]
> [-- Typ: message/rfc822, Kodning: 7bit, Storlek: 0,7K --]
> 
> Date: Sun, 20 Mar 2005 13:33:20 +0100
> From: Ulf Magnusson <ulfma629 at student.liu.se>
> To: ulfma629 at student.liu.se
> Subject: test
> User-Agent: Mutt/1.4.2.1i
> 
> test
> 
> 
> any ideas? Please be aware that I'm totally new to sendmail when replying :)

-- 
... don't touch the bang bang fruit


More information about the freebsd-questions mailing list