User Tools

Site Tools


nullmailer

If you want to send us your comments, please do so. Thanks
More on comments


nullmailer

Send mail from cron

To send mail from cron and alike to /var/mail/user use dma

Configuartion

/bin/hostname > /usr/local/etc/nullmailer/me
/bin/hostname > /etc/nullmailer/me
cd /etc/alternatives
rm mta mta-sendmail
ln -s /usr/sbin/sendmail mta
ln -s /usr/sbin/sendmail mta-sendmail

Commands

service nullmailer restart

You can also use start or stop instead of restart Send the messages in the queue manually

smtp --help
nullmailer-send

Examples

Send an e-mail. Make sure to add the senders e-mailaddress with the -r option

mailx -s Hallo -r user@somedomain.com user@somedomain.com

Then enter the message and close with CTRL-D

/etc/nullmailer/remotes file. The order is important

localhost smtp (this does not work yet)
#mail.host.nl smtp --port=465 --ssl --auth-login --user=username --pass=PASSWORD
mail.host.nl smtp --port=465 --ssl --insecure --user=username --pass=PASSWORD
smtp.otherhostname.net smtp --port=465 --ssl

smtp is the file from /usr/lib/nullmailer/smtp

Files and Folders

FileDesriptionman page
/etc/mailnameHostname of the PC nullmailer is running on
/etc/nullmailer/adminaddrThe account the local mail has to be send to like user@localhostnullmailer-queue
/etc/nullmailer/defaultdomainCan be left empty. The value of /etc/mailname is used. If /etc/mailname is empty defauldomain is usednullmailer-inject
/etc/nullmailer/pausetimeTime in seconds between successive queue runsnullmailer-send
/etc/nullmailer/remotes
/usr/lib/nullmailer/smtpThe protocol program directory with the smtp protocol filenullmailer-send
/var/spool/nullmailerThe nullmailer spool folder
/var/spool/nullmailer/queueThe mail queue folder
/usr/share/lintian/overrides/nullmailer
/sbin/smtpSome other smtp programNo manpage

More locations: do updatedb; locate nullmailer

nullmailer
Using nullmailer-smtpd for localhost:25
MailConcept
nullmailer landmines
5 ways to send e-mail from linux command line


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
nullmailer.txt · Last modified: 28-09-2023 09:59 by wim