Re: using mutt with postfix and localhost:25

2021-09-11 Thread raf
On Sat, Sep 11, 2021 at 08:23:04AM -0700, Michael Slouber 
 wrote:

> On 09/11/21 01:24PM, Globe Trotter via Mutt-users wrote:
> > Thanks very much!  I am unable to send mail using postfix. However,
> > the same setting makes it work for sylpheed when I simply specify
> > localhost:25 in the SMTP server so I think that the postfix is set
> > up all right, perhaps.

If postfix is configured correctly, and mail submitted
via localhost:25 does get delivered, then the default
value for mutt's sendmail parameter should also work.

What do you mean when you say you are unable to send
mail using postfix? Sending mail using postfix means
using a mail user agent like mutt which by default
submits mail for delivery by invoking postfix's
sendmail-compatible /usr/sbin/sendmail program to
submit mail to postfix's mail queue, after which
postfix will deliver it.

What acually goes wrong when you try to send email from
mutt with the default setting for the sendmail
parameter?

> This setting in Muttrc works for me:
> 
> set smtp_url = "smtp://localhost:25"

This is intended for using a remote smarthost to send
mail through. It shouldn't be necessary for localhost.
It works, but it's probably slightly slower because it
has to perform the SMTP dialogue.

If postfix can deliver mail submitted by mutt this way,
it should also be able to deliver mail submitted by
mutt the default way.

cheers,
raf



Re: using mutt with postfix and localhost:25

2021-09-11 Thread Globe Trotter via Mutt-users
And that does it, thank you!! On to the next task now.






On Saturday, September 11, 2021, 10:30:47 AM CDT, Michael Slouber via 
Mutt-users  wrote: 





On 09/11/21 01:24PM, Globe Trotter via Mutt-users wrote:

> Thanks very much!  I am unable to send mail using postfix. However, the same 
> setting makes it work for sylpheed when I simply specify localhost:25 in the 
> SMTP server so I think that the postfix is set up all right, perhaps.
> 
> Is there a way to explicitly put localhost with port 25 in the send mail?
> 
> Btw, I have not actually managed to set up two accounts with mutt, that is my 
> next target after resolving this.
> 
> Thanks!
> 
> 
> 
> 
> 
> 
> On Saturday, September 11, 2021, 02:24:52 AM CDT, raf  wrote: 
> 
> 
> 
> 
> 
> On Sat, Sep 11, 2021 at 05:31:13AM +, Globe Trotter via Mutt-users 
>  wrote:
> 
> 
> > Hi,
> > 
> > I have an account where I need to send email through localhost
> > (with port 25). I am using postfix currently, but I do not know
> > much. Anyway, on sylpheed, I used to say: localhost:25 as the SMTP
> > server and life was good. So, my question is how do I set it up for
> > this account to use SMTP server localhost:25? (The other accounts are
> > personal and will use gmx, etc, SMTP settings). I have been using
> > postfix because my work email uses postfix as given by my sysadmin (I
> > think that it changes the relayhost name) and perhps the same can be
> > done with something like msmtp but i do not know.
> > 
> > Thanks!
> 
> 
> The typical way to submit mail locally is via
> /usr/sbin/sendmail. That's the default in mutt (and
> probably all other MUAs). The explicit default is:
> 
>   set sendmail="/usr/sbin/sendmail -oem -oi"
> 
> You shouldn't have to do anything to make this happen.
> It's the default.
> 
> Technically, postfix's sendmail binary doesn't use SMTP
> (it runs postdrop to add the message to postfix's mail
> queue) but that shouldn't matter. It's functionally
> equivalent to using SMTP on localhost:25, so you
> shouldn't need to care.
> 
> But, if you really have a reason to avoid the default,
> more efficient, already working thing, and make
> absolutely sure that you are directly connecting to
> localhost:25, you should search for a different
> sendmail-compatible program that does SMTP to
> localhost:25, install it, and then set mutt's sendmail
> variable to refer to that:
> 
>   In ~/.muttrc:
>   set sendmail="/path/to/other/sendmail -oem -oi"
> 
> But it sounds very much as though you really don't need
> to do this. It sounds like you just need the local mail
> server to deliver mail sent from mutt, and if you have
> postfix installed locally and configured OK, that will
> just happen.
> 
> cheers,
> raf

> 

This setting in Muttrc works for me:

set smtp_url = "smtp://localhost:25"







Re: using mutt with postfix and localhost:25

2021-09-11 Thread Michael Slouber via Mutt-users
On 09/11/21 01:24PM, Globe Trotter via Mutt-users wrote:
> Thanks very much!  I am unable to send mail using postfix. However, the same 
> setting makes it work for sylpheed when I simply specify localhost:25 in the 
> SMTP server so I think that the postfix is set up all right, perhaps.
> 
> Is there a way to explicitly put localhost with port 25 in the send mail?
> 
> Btw, I have not actually managed to set up two accounts with mutt, that is my 
> next target after resolving this.
> 
> Thanks!
> 
> 
> 
> 
> 
> 
> On Saturday, September 11, 2021, 02:24:52 AM CDT, raf  wrote: 
> 
> 
> 
> 
> 
> On Sat, Sep 11, 2021 at 05:31:13AM +, Globe Trotter via Mutt-users 
>  wrote:
> 
> 
> > Hi,
> > 
> > I have an account where I need to send email through localhost
> > (with port 25). I am using postfix currently, but I do not know
> > much. Anyway, on sylpheed, I used to say: localhost:25 as the SMTP
> > server and life was good. So, my question is how do I set it up for
> > this account to use SMTP server localhost:25? (The other accounts are
> > personal and will use gmx, etc, SMTP settings). I have been using
> > postfix because my work email uses postfix as given by my sysadmin (I
> > think that it changes the relayhost name) and perhps the same can be
> > done with something like msmtp but i do not know.
> > 
> > Thanks!
> 
> 
> The typical way to submit mail locally is via
> /usr/sbin/sendmail. That's the default in mutt (and
> probably all other MUAs). The explicit default is:
> 
>   set sendmail="/usr/sbin/sendmail -oem -oi"
> 
> You shouldn't have to do anything to make this happen.
> It's the default.
> 
> Technically, postfix's sendmail binary doesn't use SMTP
> (it runs postdrop to add the message to postfix's mail
> queue) but that shouldn't matter. It's functionally
> equivalent to using SMTP on localhost:25, so you
> shouldn't need to care.
> 
> But, if you really have a reason to avoid the default,
> more efficient, already working thing, and make
> absolutely sure that you are directly connecting to
> localhost:25, you should search for a different
> sendmail-compatible program that does SMTP to
> localhost:25, install it, and then set mutt's sendmail
> variable to refer to that:
> 
>   In ~/.muttrc:
>   set sendmail="/path/to/other/sendmail -oem -oi"
> 
> But it sounds very much as though you really don't need
> to do this. It sounds like you just need the local mail
> server to deliver mail sent from mutt, and if you have
> postfix installed locally and configured OK, that will
> just happen.
> 
> cheers,
> raf
> 

This setting in Muttrc works for me:

set smtp_url = "smtp://localhost:25"






Re: using mutt with postfix and localhost:25

2021-09-11 Thread Globe Trotter via Mutt-users
Thanks very much!  I am unable to send mail using postfix. However, the same 
setting makes it work for sylpheed when I simply specify localhost:25 in the 
SMTP server so I think that the postfix is set up all right, perhaps.

Is there a way to explicitly put localhost with port 25 in the send mail?

Btw, I have not actually managed to set up two accounts with mutt, that is my 
next target after resolving this.

Thanks!






On Saturday, September 11, 2021, 02:24:52 AM CDT, raf  wrote: 





On Sat, Sep 11, 2021 at 05:31:13AM +, Globe Trotter via Mutt-users 
 wrote:


> Hi,
> 
> I have an account where I need to send email through localhost
> (with port 25). I am using postfix currently, but I do not know
> much. Anyway, on sylpheed, I used to say: localhost:25 as the SMTP
> server and life was good. So, my question is how do I set it up for
> this account to use SMTP server localhost:25? (The other accounts are
> personal and will use gmx, etc, SMTP settings). I have been using
> postfix because my work email uses postfix as given by my sysadmin (I
> think that it changes the relayhost name) and perhps the same can be
> done with something like msmtp but i do not know.
> 
> Thanks!


The typical way to submit mail locally is via
/usr/sbin/sendmail. That's the default in mutt (and
probably all other MUAs). The explicit default is:

  set sendmail="/usr/sbin/sendmail -oem -oi"

You shouldn't have to do anything to make this happen.
It's the default.

Technically, postfix's sendmail binary doesn't use SMTP
(it runs postdrop to add the message to postfix's mail
queue) but that shouldn't matter. It's functionally
equivalent to using SMTP on localhost:25, so you
shouldn't need to care.

But, if you really have a reason to avoid the default,
more efficient, already working thing, and make
absolutely sure that you are directly connecting to
localhost:25, you should search for a different
sendmail-compatible program that does SMTP to
localhost:25, install it, and then set mutt's sendmail
variable to refer to that:

  In ~/.muttrc:
  set sendmail="/path/to/other/sendmail -oem -oi"

But it sounds very much as though you really don't need
to do this. It sounds like you just need the local mail
server to deliver mail sent from mutt, and if you have
postfix installed locally and configured OK, that will
just happen.

cheers,
raf



Re: multiple color schemes

2021-09-11 Thread Bastian
On 08Sep21 15:50-0400, Jon LaBadie wrote:
> On Wed, Sep 08, 2021 at 04:23:59PM +0300, Oleg A. Mamontov wrote:
> > On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie wrote:
> > > I've always preferred a black letters on white background scheme.
> > > However, after cataract surgery I'm considering using a dark
> > > background scheme.
> > > 
> > > Has anyone a technique for defining multiple color schemes and
> > > toggling among them while using mutt?

While talking about colors, I'd like to suggest to have a look at the 
solarized color schemes. Configs for those are available for many 
programs (from terminal emulators up to e.g. heavy weight GUIs of IDEs).

Primarily, I use rxvt with a simple extension (perl) which switches 
the color scheme of the console between solarized-{light,dark}. Thus, 
not only mutt, but the entire console is using the same theme; in 
particular also vim, while composing the mail.

-- 
Bastian


Re: using mutt with postfix and localhost:25

2021-09-11 Thread Chris Green
On Sat, Sep 11, 2021 at 05:24:21PM +1000, raf wrote:
> On Sat, Sep 11, 2021 at 05:31:13AM +, Globe Trotter via Mutt-users 
>  wrote: 
> 
> > Hi,
> > 
> > I have an account where I need to send email through localhost
> > (with port 25). I am using postfix currently, but I do not know
> > much. Anyway, on sylpheed, I used to say: localhost:25 as the SMTP
> > server and life was good. So, my question is how do I set it up for
> > this account to use SMTP server localhost:25? (The other accounts are
> > personal and will use gmx, etc, SMTP settings). I have been using
> > postfix because my work email uses postfix as given by my sysadmin (I
> > think that it changes the relayhost name) and perhps the same can be
> > done with something like msmtp but i do not know.
> > 
> > Thanks!
> 
> The typical way to submit mail locally is via
> /usr/sbin/sendmail. That's the default in mutt (and
> probably all other MUAs). The explicit default is:
> 
>   set sendmail="/usr/sbin/sendmail -oem -oi"
> 
> You shouldn't have to do anything to make this happen.
> It's the default.
> 
That's how I run mutt with postfix on my xubuntu system.

-- 
Chris Green


Re: using mutt with postfix and localhost:25

2021-09-11 Thread raf
On Sat, Sep 11, 2021 at 05:24:21PM +1000, raf  wrote:

> On Sat, Sep 11, 2021 at 05:31:13AM +, Globe Trotter via Mutt-users 
>  wrote:
> 
> > Hi,
> > 
> > I have an account where I need to send email through localhost
> > (with port 25). I am using postfix currently, but I do not know
> > much. Anyway, on sylpheed, I used to say: localhost:25 as the SMTP
> > server and life was good. So, my question is how do I set it up for
> > this account to use SMTP server localhost:25? (The other accounts are
> > personal and will use gmx, etc, SMTP settings). I have been using
> > postfix because my work email uses postfix as given by my sysadmin (I
> > think that it changes the relayhost name) and perhps the same can be
> > done with something like msmtp but i do not know.
> > 
> > Thanks!
> 
> The typical way to submit mail locally is via
> /usr/sbin/sendmail. That's the default in mutt (and
> probably all other MUAs). The explicit default is:
> 
>   set sendmail="/usr/sbin/sendmail -oem -oi"
> 
> You shouldn't have to do anything to make this happen.
> It's the default.
> 
> Technically, postfix's sendmail binary doesn't use SMTP
> (it runs postdrop to add the message to postfix's mail
> queue) but that shouldn't matter. It's functionally
> equivalent to using SMTP on localhost:25, so you
> shouldn't need to care.
> 
> But, if you really have a reason to avoid the default,
> more efficient, already working thing, and make
> absolutely sure that you are directly connecting to
> localhost:25, you should search for a different
> sendmail-compatible program that does SMTP to
> localhost:25, install it, and then set mutt's sendmail
> variable to refer to that:
> 
>   In ~/.muttrc:
>   set sendmail="/path/to/other/sendmail -oem -oi"
> 
> But it sounds very much as though you really don't need
> to do this. It sounds like you just need the local mail
> server to deliver mail sent from mutt, and if you have
> postfix installed locally and configured OK, that will
> just happen.
> 
> cheers,
> raf

I've probably misunderstood what you are asking. If you
have mutt configured for using different accounts, and
already have it set up to change hwo it sends mail
depending on which account you are looking at, just
configure it to use the default sendmail setting above
for the account that requires local delivery.

If I've still misunderstood, maybe you could show how
you are currently configuring mutt to use gmx's SMTP
server etc. for the other accounts.

cheers,
raf



Re: using mutt with postfix and localhost:25

2021-09-11 Thread raf
On Sat, Sep 11, 2021 at 05:31:13AM +, Globe Trotter via Mutt-users 
 wrote:

> Hi,
> 
> I have an account where I need to send email through localhost
> (with port 25). I am using postfix currently, but I do not know
> much. Anyway, on sylpheed, I used to say: localhost:25 as the SMTP
> server and life was good. So, my question is how do I set it up for
> this account to use SMTP server localhost:25? (The other accounts are
> personal and will use gmx, etc, SMTP settings). I have been using
> postfix because my work email uses postfix as given by my sysadmin (I
> think that it changes the relayhost name) and perhps the same can be
> done with something like msmtp but i do not know.
> 
> Thanks!

The typical way to submit mail locally is via
/usr/sbin/sendmail. That's the default in mutt (and
probably all other MUAs). The explicit default is:

  set sendmail="/usr/sbin/sendmail -oem -oi"

You shouldn't have to do anything to make this happen.
It's the default.

Technically, postfix's sendmail binary doesn't use SMTP
(it runs postdrop to add the message to postfix's mail
queue) but that shouldn't matter. It's functionally
equivalent to using SMTP on localhost:25, so you
shouldn't need to care.

But, if you really have a reason to avoid the default,
more efficient, already working thing, and make
absolutely sure that you are directly connecting to
localhost:25, you should search for a different
sendmail-compatible program that does SMTP to
localhost:25, install it, and then set mutt's sendmail
variable to refer to that:

  In ~/.muttrc:
  set sendmail="/path/to/other/sendmail -oem -oi"

But it sounds very much as though you really don't need
to do this. It sounds like you just need the local mail
server to deliver mail sent from mutt, and if you have
postfix installed locally and configured OK, that will
just happen.

cheers,
raf