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