shiftcoder at gmail.com
Mon Sep 20 00:56:42 PDT 2010
I attached dma man page in my ubuntu 10.04 system.
I think that it's the same of dragonflybsd.
When I install dma package in ubuntu, then the system
make /etc/dma folder with the following files:
auth.conf dma.conf virtusertable
I have two questions:
1) how can enable dma server?
2) but especially how can write message mail with dma command?
2010/9/20 Matthias Schmidt <matthias at dragonflybsd.org>:
> * dark0s Optik wrote:
>> I'm running Ubuntu 10.04 and I've installed with apt DragonFly Mail
>> Agent package (dma).
>> dma man page is the same that dragonflybsd dma man page, but I want to
>> know how I must
>> send mail with dma command.
> Never used dma with Linux, so just some wild guesses ... Maybe there is
> some command/file to "switch" from the default MTA to dma (like
> /etc/mail/mailer.conf in DragonFly). Â This should do the trick.
> Otherwise a manual symlink from /path/to/mta -> /path/to/dma should also
> Â Â Â Â Matthias
only the paranoid will survive
DMA(8) BSD System Manager's Manual DMA(8)
dma â DragonFly Mail Agent
dma [-DiOt] [-A mode] [-b mode] [-f sender] [-L tag] [-o option] [-r sender] [-q arg] [recipient ...]
dma is a small Mail Transport Agent (MTA), designed for home and office use. It accepts mails from locally installed Mail User Agents (MUA) and delivers the
mails either locally or to a remote destination. Remote delivery includes several features like TLS/SSL support and SMTP authentication.
dma is not intended as a replacement for real, big MTAs like sendmail(8) or postfix(1). Consequently, dma does not listen on port 25 for incoming connecâ
The options are as follows:
-Ac acts as a compatibility option for sendmail.
Specifying -bp will list all mails currently stored in the mail queue. All other modes are are ignored.
-D Don't run in the background. Useful for debugging.
Set sender address to sender.
-i Ignore dots alone on lines by themselves in incoming messages. This should be set if you are reading data from a file.
-L tag Set the identifier used in syslog messages to the supplied tag. This is a compatibility option for sendmail.
-O This is a compatibility option for sendmail.
Specifying -oi is synonymous to -i. All other options are ignored.
-q arg Process saved messages in the queue. The argument is required for compatibility with sendmail, and ignored.
Same as -f.
-t Parse the message to obtain the recipient addresses.
dma can be configured with three config files:
These three files are stored per default in /etc/dma.
Every file contains parameters of the form âname valueâ. Lines containing boolean values are set to âNOâ if the line is commented and to âYESâ if the line is
uncommented. Empty lines or lines beginning with a â#â are ignored. Parameter names and their values are case sensitive.
SMTP authentication can be configured in auth.conf. Each line has the format âuser|smarthost:passwordâ.
Most of the behaviour of dma can be configured in dma.conf.
SMARTHOST (string, default=mail.example.com)
If you want to send outgoing mails via a smarthost, set this variable to your smarthosts address.
PORT (numeric, default=25)
Use this port to deliver remote emails. Only useful together with the âSMARTHOSTâ option, because dma will deliver all mails to this port, regardless
of whether a smarthost is set or not.
ALIASES (string, default=/etc/aliases)
Path to the local aliases file. Just stick with the default.
SPOOLDIR (string, default=/var/spool/dma)
Path to dma's spool directory. Just stick with the default.
VIRTPATH (string, default=/etc/dma/virtusertable)
Path to the âvirtusertableâ file.
AUTHPATH (string, default=/etc/dma/auth.conf)
Path to the âauth.confâ file.
VIRTUAL (boolean, default=commented)
Comment if you want virtual user support.
SECURETRANS (boolean, default=commented)
Comment if you want TLS/SSL secured transfer.
STARTTLS (boolean, default=commented)
Comment if you want to use STARTTLS. Only useful together with âSECURETRANSâ.
CERTFILE (string, default=empty)
Path to your SSL certificate file.
SECURE (boolean, default=commented)
Change this entry to âINSECUREâ to use plain text SMTP login over an insecure connection. You have to rename this variable manually to prevent that you
send your password accidentally over an insecure connection.
DEFER (boolean, default=commented)
Comment if you want that dma defers your mail. You have to flush your mail queue manually with the -q option. This option is handy if you are behind a
DBOUNCEPROG (string, default=commented)
Comment if you want the default behavior of dma upon double bounces - just abort the delivery. Otherwise, specify the name or full path to a program
that will process the bounced bounce message.
The program will be invoked with several command-line options:
dbounce -t dma -a bounced at email.address -i queueid -f messagefile
FULLBOUNCE (boolean, default=commented)
Uncomment if you want the bounce message to include the complete original message, not just the headers.
MAILNAME (string, default=empty)
The name to be used when introducing this host, if different from the result of hostname(1). If specified, this option overrides âMAILNAMEFILEâ.
MAILNAMEFILE (string, default=empty)
The name of the file to read the âMAILNAMEâ from.
The virtusertable file specifies a virtual user table. Each line has the format âlocaluser:mail-addressâ. Some smarthosts do not accept mails from unresolvâ
able email address (e.g. user at localhost) so you have to rewrite your outgoing email address to a valid address.
mailaddr(7), mailwrapper(8), sendmail(8)
J. B. Postel, Simple Mail Transfer Protocol, RFC 821.
J. Myers, SMTP Service Extension for Authentication, RFC 2554.
P. Hoffman, SMTP Service Extension for Secure SMTP over TLS, RFC 2487.
The dma utility first appeared in DragonFly 1.11.
dma was written by Matthias Schmidt â¨matthias at dragonflybsd.orgâ© and
Simon Schubert â¨corecode at dragonflybsd.orgâ©.
BSD September 2, 2008 BSD
More information about the Users