Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a working msmtp configuration and I would like caff (from signing-party package) to use msmtp to send the keys I sign after a KSP. So far I'm only getting this error message:

No real MTA found, using ‘testfile’ at /usr/share/perl5/Mail/ line

Have somebody use caff with msmtp???

share|improve this question
up vote 1 down vote accepted

The error you are seeing comes from the PERL Mail::Mailer package. Although Mail::Mailer supports sending e-mail directly with SMTP (thus, no sendmail binary needed), it defaults to using sendmail on Linux/UNIX and the only way to change that is through change of the constructor parameters in the sources.

So, I can see only three options:

  1. Install an MTA that provides command-line sendmail emulation; package msmtp-mta provides that on top of msmtp; other MTAs like esmtp and nullmailer can also do this.

  2. Provide your own sendmail-emulation script that pipes input to msmtp; you can then direct Mail::Mailer to use that instead of the system-wide sendmail (see the Mail::Mailer doc for details):

    export PERL_MAILERS="sendmail:/path/to/my/sendmail/wrapper"
  3. Change the caff sources to create the Mail::Mailer object as:

    $mailer = Mail::Mailer->new('smtp', Server => '');

    instead of the default invocation that it is likely using now.

share|improve this answer
Thank you for your answer, but it solved out after installing msmtp-mta package u_u – josernestodavila Oct 27 '10 at 21:26
@alucardni thanks, I've updated the answer with your final resolution. – Riccardo Murri Oct 28 '10 at 7:59

protected by Oli Oct 19 '11 at 1:12

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.