Unable to send with Sendmail

Vishnu V. Krishnan vishnugb at gmail.com
Tue Aug 14 20:09:56 BST 2018


Hi!

I'm using KMail v5.8.3. I have a couple of mail accounts, with sending 
configured using 'msmtp'. I am able to send emails on all of those accounts, 
via command-line, choosing each account as follows:

    $ echo "<Message>" | msmtp --account=<account_name> recipient at email.tld

But when I configure KMail to use this under Settings > Accounts > Sending, as 
a 'Sendmail'-like account (click on 'Add' in the same settings dialog), I get 
the error notification:

    E-Mail Sending Failed
    Failed to transport message. Failed to execute mailer program /usr/bin/
msmtp --account=<account_name>

Then again, it does work in one particular case. I have three accounts, and 
the msmtp configuration allows you to choose one of your accounts as the 
default. For the default account, the sendmail setting (in Kmail) is just '/
usr/bin/msmtp' (without the --account=<account_name>). And in that case it is 
able to send it.

What am I doing wrong?

Thanks!
Vishnu
-- 
⚷ OpenPGP: 5015 1D4C 9BDF 9062 A9E1 62CB 5B1F4BEE7EED7131
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdepim-users/attachments/20180815/d6e5365f/attachment.sig>


More information about the kdepim-users mailing list