summaryrefslogtreecommitdiff
path: root/README.mutt
blob: 9881d832e03dd0676e6bc673cd346633cec207ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
To use esmtp with mutt add

	set sendmail="/path/to/esmtp"

to your ~/.muttrc and create a ~/.esmtp (see sample.esmtp for an example.)


For debugging purposes you may prefer using the follwing shell script. 

	#!/bin/sh

	LOGFILE=/tmp/esmtp.log

	echo $0 $@ > $LOGFILE

	/path/to/esmtp -m $@ >> $LOGFILE

	exit $?

Save it as esmtp.sh and put in you ~/.muttrc

	set sendmail="/path/to/esmtp.sh"

instead.


TODO: This would be better handled if done by esmtp itself and controllable by a configuration setting.