Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2005 17:48:33 +0100
From:      Oliver Fuchs <oliverfuchs@onlinehome.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: Mutt & sendmail configuration problems
Message-ID:  <20050320164833.GA2767@oliverfuchs.onlinehome.de>
In-Reply-To: <951e41953ef5.953ef5951e41@liu.se>
References:  <951e41953ef5.953ef5951e41@liu.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@student.liu.se>
>     (reason: 504 <ulf@obygden>: Sender address rejected: need fully-qualified address)
> 
>    ----- Transcript of session follows -----
> ... while talking to smtp.liu.se.:
> >>> DATA
> <<< 504 <ulf@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@student.liu.se
> Action: failed
> Status: 5.5.4
> Remote-MTA: DNS; smtp.liu.se
> Diagnostic-Code: SMTP; 504 <ulf@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@student.liu.se>
> To: ulfma629@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050320164833.GA2767>