Re: Using a sendmail replacement?

2016-02-22 Thread Tim Gray

On Feb 21, 2016 at 02:03 PM +0100, Gabriel Philippe wrote:

On Sun, Feb 21, 2016 at 11:47 AM, Andreas Doll  wrote:

On 2016-02-21 at 12:59, li...@2ion.de wrote:

I am using msmtp[1] for this. You can keep its configuration entirely in $HOME.


I second that, msmtp works fine for me in the described setting. Note that it
only works online, for offline usage see [1].

[1]https://wiki.archlinux.org/index.php/MSMTP#Using_msmtp_offline


Thanks, I will test that. I need offline (and more generally I want
send-and-forget from mutt, without delay for DNS request, etc.).


Just another option to msmtp if you are looking for one:

Some years ago I started using putmail instead of msmtp.  As it is 
not actively developed, I forked it and cleaned up the queuing scripts.  
It can be found on my github page [1].  My mutt sendmail is set to a 
wrapper shell script that queues all messages passed to it 
automatically, and then immediately dequeues them if I have an active 
connection.  I have the dequeue script called in my crontab as well.  
I've been using it this way for it least 5 years with no problems.  

Configuration is in $HOME and it can be set to use multiple SMTP 
accounts based on your from address.


The wrapper around putmail (or msmtp) is nice because you can tee off 
the message to other utilities too if you need to, like one for 
collecting email addresses you've sent to.


[1]: https://github.com/tgray/putmail

Tim


Re: Using a sendmail replacement?

2016-02-21 Thread Grant Edwards
On 2016-02-21, li...@2ion.de  wrote:
> On Sat, Feb 20, 2016 at 08:45:19PM +0100, Gabriel Philippe wrote:
>> I found nullmailer, but it is designed for a system-wide use:
>> conffiles in /etc/, stuff in /var, etc. I'm not sure I would manage to
>> have it work differently.
>> 
>> Any idea?
>
> I am using msmtp[1] for this. You can keep its configuration entirely in 
> $HOME.

Add another vote for msmtp

-- 
Grant





Re: Using a sendmail replacement?

2016-02-21 Thread Gabriel Philippe
On Sun, Feb 21, 2016 at 11:47 AM, Andreas Doll  wrote:
> On 2016-02-21 at 12:59, li...@2ion.de wrote:
>> I am using msmtp[1] for this. You can keep its configuration entirely in 
>> $HOME.
>
> I second that, msmtp works fine for me in the described setting. Note that it
> only works online, for offline usage see [1].
>
> [1]https://wiki.archlinux.org/index.php/MSMTP#Using_msmtp_offline

Thanks, I will test that. I need offline (and more generally I want
send-and-forget from mutt, without delay for DNS request, etc.).

-- 
Gabriel


Re: Using a sendmail replacement?

2016-02-21 Thread Andreas Doll
On 2016-02-21 at 12:59, li...@2ion.de wrote:
> I am using msmtp[1] for this. You can keep its configuration entirely in 
> $HOME.

I second that, msmtp works fine for me in the described setting. Note that it
only works online, for offline usage see [1].

[1]https://wiki.archlinux.org/index.php/MSMTP#Using_msmtp_offline


Re: Using a sendmail replacement?

2016-02-20 Thread lists
On Sat, Feb 20, 2016 at 08:45:19PM +0100, Gabriel Philippe wrote:
> I found nullmailer, but it is designed for a system-wide use:
> conffiles in /etc/, stuff in /var, etc. I'm not sure I would manage to
> have it work differently.
> 
> Any idea?

I am using msmtp[1] for this. You can keep its configuration entirely in $HOME.

--
[1] http://msmtp.sourceforge.net/


Re: Using a sendmail replacement?

2016-02-20 Thread Gabriel Philippe
On Sat, Feb 20, 2016 at 9:40 PM, Cameron Simpson  wrote:
> Me too. I run postfix as the local mail system on this Mac and have mutt
> deliver to it.
>
> Having your local machine mail system working is very useful - you can send
> messages while offline and they will be queued and go out when you're next
> online. For example, when catching up on email on a train.

I do use exim and experience all of that. :)


> It does require config outside your homedir, but on the other hand your
> machine's mail system is then useful.
>
> Can you outline what kind of criteria you would want to use in your hooks?

That's the point. I don't want personal configuration outside of my
$HOME (such as SMTP password). Depending of the recipient or the
folder I'm in, I want to set which SMTP server, password, $from to
use. This can be done easily by using mutt's SMTP capabilities and
dynamically changing $smtp_url, but I would prefer using different
$sendmail.

What I need is an external program to get the message to deliver, with
queue management (that's tricky), and every configuration and
temporary files within my $HOME. Best of 2 worlds. :)

-- 
Gabriel


Re: Using a sendmail replacement?

2016-02-20 Thread Cameron Simpson

On 20Feb2016 20:05, Chris Green  wrote:

On Sat, Feb 20, 2016 at 08:45:19PM +0100, Gabriel Philippe wrote:

I would like to combine the immediacy of using $sendmail to send
e-mails from mutt with the flexibility of $smtp_url. I want to select
a different smarthost (ISP/webmail/whatever), depending on hooks,
without having mutt waiting for the message to be sent, and without
having configuration outside of my $HOME.

I found nullmailer, but it is designed for a system-wide use:
conffiles in /etc/, stuff in /var, etc. I'm not sure I would manage to
have it work differently.


Postfix is very simple to configure in my experience, it's the
standard on some distributions.


Me too. I run postfix as the local mail system on this Mac and have mutt 
deliver to it.


Having your local machine mail system working is very useful - you can send 
messages while offline and they will be queued and go out when you're next 
online. For example, when catching up on email on a train.


It does require config outside your homedir, but on the other hand your 
machine's mail system is then useful.


Can you outline what kind of criteria you would want to use in your hooks?

Cheers,
Cameron Simpson 


Re: Using a sendmail replacement?

2016-02-20 Thread Chris Green
On Sat, Feb 20, 2016 at 08:45:19PM +0100, Gabriel Philippe wrote:
> Hi,
> 
> I would like to combine the immediacy of using $sendmail to send
> e-mails from mutt with the flexibility of $smtp_url. I want to select
> a different smarthost (ISP/webmail/whatever), depending on hooks,
> without having mutt waiting for the message to be sent, and without
> having configuration outside of my $HOME.
> 
> I found nullmailer, but it is designed for a system-wide use:
> conffiles in /etc/, stuff in /var, etc. I'm not sure I would manage to
> have it work differently.
> 
Postfix is very simple to configure in my experience, it's the
standard on some distributions.

-- 
Chris Green


Using a sendmail replacement?

2016-02-20 Thread Gabriel Philippe
Hi,

I would like to combine the immediacy of using $sendmail to send
e-mails from mutt with the flexibility of $smtp_url. I want to select
a different smarthost (ISP/webmail/whatever), depending on hooks,
without having mutt waiting for the message to be sent, and without
having configuration outside of my $HOME.

I found nullmailer, but it is designed for a system-wide use:
conffiles in /etc/, stuff in /var, etc. I'm not sure I would manage to
have it work differently.

Any idea?

-- 
Gabriel