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 <mutt-users@mutt.org> 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 <m...@raf.org> wrote: > > > > > > On Sat, Sep 11, 2021 at 05:31:13AM +0000, Globe Trotter via Mutt-users > <mutt-users@mutt.org> 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"