You are not logged in.

#1 2009-03-20 04:20:33

carrot
Member
Registered: 2008-10-21
Posts: 14

SOLVED: Mutt & Postfix SMTP

i have setup a mailserver as follows:

getmail - to receive mail from my isp (2 accounts received into seperate maildir directories)
dovecot - to serve the two maildir's over imaps
postfix - to relay my emails to my ISP smtp

On my laptop & desktop I am running Claws-Mail, and everything is working fine (receiving, serving, and sending). However, I decided to setup mutt on the server for checking email quickly via SSH. I have been able to setup mutt to check my mail via imap, but have been unable to get it to send mail. While trying to send an email I have had tail running on the mail.log and found that postfix is not even registering that mutt is trying to send.

How do I go about setting up mutt to send mail using postfix?

I have spent the last week reading different how to's and forum threads, and can't get it to work.

Last edited by carrot (2009-04-02 22:01:36)


Desktop Core2Quad, 6GB RAM, GF9600GT, Arch x86_64 w/ SpectrWM & Win7
Media Center AMDXP2600+, 1.8GB RAM, GF6600GT, LC17 Case, DTV2000H, AW870LP, Arch w/ MythTV & SpectrWM
Laptop Aspire One D250, 2GB RAM, SSD, Arch w/ SpectrWM | Dell D620, 3GB RAM, Ubuntu 12.04
Server EEE PC 701, Arch Torrent, Mail & File Server

Offline

#2 2009-03-20 13:24:48

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: SOLVED: Mutt & Postfix SMTP

Did you check this page ?
http://mutt.blackfish.org.uk/sending/

Offline

#3 2009-03-20 14:13:33

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: SOLVED: Mutt & Postfix SMTP

can you post the smtp related lines from .muttrc?

Offline

#4 2009-04-01 23:50:04

carrot
Member
Registered: 2008-10-21
Posts: 14

Re: SOLVED: Mutt & Postfix SMTP

I have 2 .muttrc files for my two email accounts, which I then specify when opening mutt. Both are setup the same, other than the account details. Here is my smtp related lines from one of my .muttrc files:

set record = "+SENT"
set postponed = "+.Drafts"

set smtp_url = "smtp://localhost:25"
set sendmail = "/usr/sbin/sendmail -oem -oi"
set reply_to = yes


Desktop Core2Quad, 6GB RAM, GF9600GT, Arch x86_64 w/ SpectrWM & Win7
Media Center AMDXP2600+, 1.8GB RAM, GF6600GT, LC17 Case, DTV2000H, AW870LP, Arch w/ MythTV & SpectrWM
Laptop Aspire One D250, 2GB RAM, SSD, Arch w/ SpectrWM | Dell D620, 3GB RAM, Ubuntu 12.04
Server EEE PC 701, Arch Torrent, Mail & File Server

Offline

#5 2009-04-02 08:45:32

bwalk
Member
Registered: 2007-03-21
Posts: 177

Re: SOLVED: Mutt & Postfix SMTP

If postfix works fine, then just use mutt's default configuration for sendmail (ie, don't set any options in your config). It should work then.

Offline

#6 2009-04-02 13:50:51

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: SOLVED: Mutt & Postfix SMTP

i think the set sendmail line should handle it.  no smtp_url needed.  and i'd take bwalks suggestion on removing the options too.

Offline

#7 2009-04-02 22:00:41

carrot
Member
Registered: 2008-10-21
Posts: 14

Re: SOLVED: Mutt & Postfix SMTP

commenting out both smtp_url and sendmail lines has worked. Thanks for the help.


Desktop Core2Quad, 6GB RAM, GF9600GT, Arch x86_64 w/ SpectrWM & Win7
Media Center AMDXP2600+, 1.8GB RAM, GF6600GT, LC17 Case, DTV2000H, AW870LP, Arch w/ MythTV & SpectrWM
Laptop Aspire One D250, 2GB RAM, SSD, Arch w/ SpectrWM | Dell D620, 3GB RAM, Ubuntu 12.04
Server EEE PC 701, Arch Torrent, Mail & File Server

Offline

Board footer

Powered by FluxBB