Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ssmtp.conf(5) [debian man page]

SSMTP.CONF(5)						      BSD File Formats Manual						     SSMTP.CONF(5)

NAME
ssmtp.conf -- ssmtp configuration file DESCRIPTION
ssmtp reads configuration data from /etc/ssmtp/ssmtp.conf The file contains keyword-argument pairs, one per line. Lines starting with '#' and empty lines are interpreted as comments. The possible keywords and their meanings are as follows (both are case-insensitive): Root The user that gets all mail for userids less than 1000. If blank, address rewriting is disabled. Mailhub The host to send mail to, in the form host port | IP_addr port [: port]. The default port is 25. RewriteDomain The domain from which mail seems to come. for user authentication. Hostname The full qualified name of the host. If not specified, the host is queried for its hostname. FromLineOverride Specifies whether the From header of an email, if any, may override the default domain. The default is ``no''. UseTLS Specifies whether ssmtp uses TLS to talk to the SMTP server. The default is ``no''. UseSTARTTLS Specifies whether ssmtp does a EHLO/STARTTLS before starting SSL negotiation. See RFC 2487. TLSCert The file name of an RSA certificate to use for TLS, if required. AuthUser The user name to use for SMTP AUTH. The default is blank, in which case SMTP AUTH is not used. sent without AuthPass The password to use for SMTP AUTH. AuthMethod The authorization method to use. If unset, plain text is used. May also be set to ``cram-md5''. FILES
/etc/ssmtp/ssmtp.conf Contains configuration data for ssmtp. SEE ALSO
ssmtp(8) AUTHORS
Matt Ryan (mryan@debian.org), Hugo Haas (hugo@debian.org), Christoph Lameter (clameter@debian.org) and Dave Collier-Brown (dav- ecb@hobbes.ss.org). Reuben Thomas (rrt@sc3d.org) wrote the man page. BSD
October 7, 2004 BSD

Check Out this Related Man Page

Net::SMTP::TLS::ButMaintained(3pm)			User Contributed Perl Documentation			Net::SMTP::TLS::ButMaintained(3pm)

NAME
Net::SMTP::TLS::ButMaintained - An SMTP client supporting TLS and AUTH VERSION
version 0.17 SYNOPSIS
use Net::SMTP::TLS::ButMaintained; my $mailer = Net::SMTP::TLS::ButMaintained->new( 'your.mail.host', Hello => 'some.host.name', Port => 25, #redundant User => 'emailguy', Password=> 's3cr3t'); $mailer->mail('emailguy@your.mail.host'); $mailer->to('someonecool@somewhere.else'); $mailer->data; $mailer->datasend("Sent thru TLS!"); $mailer->dataend; $mailer->quit; DESCRIPTION
Net::SMTP::TLS::ButMaintained is forked from Net::SMTP::TLS. blame "Evan Carroll" for the idea. :) Net::SMTP::TLS::ButMaintained is a TLS and AUTH capable SMTP client which offers an interface that users will find familiar from Net::SMTP. Net::SMTP::TLS::ButMaintained implements a subset of the methods provided by that module, but certainly not (yet) a complete mirror image of that API. The methods supported by Net::SMTP::TLS::ButMaintained are used in the above example. Though self explanatory for the most part, please see the perldoc for Net::SMTP if you are unclear. The differences in the methods provided are as follows: The mail method does not take the options list taken by Net::SMTP The to method also does not take options, and is the only method available to set the recipient (unlike the many synonyms provided by Net::SMTP). The constructor takes a limited number of Net::SMTP's parameters. The constructor for Net::SMTP::TLS::ButMaintained takes the following (in addition to the hostname of the mail server, which must be the first parameter and is not explicitly named): NoTLS - In the unlikely event that you need to use this class to perform non-TLS SMTP (you ought to be using Net::SMTP itself for that...), this will turn off TLS when supplied with a true value. This will most often cause an error related to authentication when used on a server that requires TLS Hello - hostname used in the EHLO command Port - port to connect to the SMTP service (defaults to 25) Timeout - Timeout for inital socket connection (defaults to 5, passed directly to IO::Socket::INET) User - username for SMTP AUTH Password - password for SMTP AUTH TLS and AUTHentication During construction of an Net::SMTP::TLS::ButMaintained instance, the full login process will occur. This involves first sending EHLO to the server, then initiating a TLS session through STARTTLS. Once this is complete, the module will attempt to login using the credentials supplied by the constructor, if such credentials have been supplied. The AUTH method will depend on the features returned by the server after the EHLO command. Based on that, CRAM-MD5 will be used if available, followed by LOGIN, followed by PLAIN. Please note that LOGIN is the only method of authentication that has been tested. CRAM-MD5 and PLAIN login functionality was taken directly from the script mentioned in the acknowledgements section, however, I have not tested them personally. ERROR HANDLING This module will croak in the event of an SMTP error. Should you wish to handle this gracefully in your application, you may wrap your mail transmission in an eval {} block and check $@ afterward. ACKNOWLEDGEMENTS This code was blatantly plagiarized from Michal Ludvig's smtp-client.pl script. See <http://www.logix.cz/michal/devel/smtp> for his excellent work. Improvements courtesy of Tomek Zielinski AUTHORS
o Alexander Christian Westholm <awestholm at verizon dawt net> o Fayland Lam <fayland@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Alexander Christian Westholm, Fayland Lam. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2013-12-04 Net::SMTP::TLS::ButMaintained(3pm)
Man Page