KOPANO-DAGENT(8)
π KOPANO-DAGENT (8) π
okay so bestie, welcome to the kopano-dagent page β she lives in the Kopano Core user reference and she is the mail delivery girlie. Let's get into it π
β¨ NAME β¨
kopano-dagent β Deliver mails to Kopano. that's it, that's the job π
β¨ SYNOPSIS β¨
kopano-dagent [OPTION...] RECIPIENT...
β¨ DESCRIPTION β¨
okay so with kopano-dagent, mail messages can be imported from Internet Mail format to Kopano. The message is read from standard input and delivered to the storage server in the mailbox of one or more RECIPIENTs. You can alter source and destination of this mail with various options. very flexible, very demure β¨
The RECIPIENT values are resolved by kopano-dagent prior to delivery, and therefore accepts any unique identifier for the recipient. In practice, it is most useful to pass the emailaddress of the user as the RECIPIENT parameter, since it is always unique. (Note that login names are sometimes not unique since group names may overlap). iykyk, just use the email address bestie π
The delivery agent will accept and deliver the message piped through it or specified by -f and exit immediately. boom, done, no lingering π¨
The delivery agent can also run as LMTP daemon. π
β¨ OPTIONS β¨
Various options are possible. None of these options are required. everything is optional, we love a low-pressure queen π
--config,-c_file_ β Use a configuration file. See theCONFIG()section for more information. Default:/etc/kopano/dagent.cfg--deamonize,-dβ Daemonize after starting. This implies--listenand is only used when LMTP is active. (yes, the flag really is spelled--deamonize, no we are not fixing it, it's iconic) π--dump-configβ Displays the values ofdagent.cfgconfiguration parameters and the implied defaults. spill the tea, config π--junk,-jβ Deliver in the Junk mail folder of the specified user. go straight to jail folder, no trial π--file,-f_file_ β Read e-mail input from _file_. When not given, input is read from standard in.--host,-h_path_ β Connect to the storage server through _path_, e.g.file:///path/to/socket. Default:file:///var/run/kopano/server.sock.--listen,-lβ Listen for incoming LMTP connections πβ¨-qβ Use qmail style exit codes. Please see theEXITCODES()section for more information.-sβ Silent mode. No output will be printed by the DAgent, except when wrong parameters are used to callkopano-dagent. shhh π€«-vβ Verbose mode. More output can be printed when processing the e-mail for rules. When given a second time, more debugging output will be printed. double it and give it to the next person π₯-eβ Strip the domain from the given username. For example, when the DAgent is called with-eand the username isname@domain.com, the delivery will be started for usernameinstead ofname@domain.com.-Rβ The passed recipient name will always be resolved first. This means that the recipient can be a username, e-mail address or any other resolvable, unique identifier for the user. However, if the resolve fails (e.g. when running as a non-trusted user), the passed name will be assumed to be a loginname of a user. Passing the-Roption will disable this and will causekopano-dagentto exit with an error when the resolve fails. In practice, the resolve will only fail ifkopano-dagentis not running in a trusted account and is therefore only really here for backward-compatibility of earlierkopano-dagentversions. a legacy queen doing legacy things π-nβ Use'now'as the delivery time. Normally, the dagent will use the date from the firstReceivedheader, which is most likely to be the header from your own mailserver.--do-not-notify,-Nβ Do not send a new mail notification to othere connected clients. This option can be useful when you have connected Outlook 2000 clients, which will also process rules when the mail is delivered.
β οΈ This is a bug workaround, and this option may disappear in the future. don't get attached bestie π
--folder,-F_path\to\folder_ β Deliver the incoming email to a specified subfolder of the store. Eg.--folder 'Inbox\important'. Note that the'Inbox'folder is language specific. If the folder does not exist, delivery is reverted to the normal Inbox of the user, or use the--createflag. language specific inboxes are giving chaos but okay π¦--public,-P_path\to\folder_ β Deliver the incoming email to a specified subfolder of the public store. Eg.--public 'sales\incoming'. If the folder does not exist, delivery is reverted to the normal Inbox of the user, or use the--createflag. going public with it β¨-p_<path separator>_ β Use a different path separator. The default is'\'. If your delivery path contains a\character, you can use this to alter the separator. Eg.-p _ --folder 'Inbox_resellers\dealers'. The mail will now be delivered in a folder called'resellers\dealers'as a subfolder of the Inbox. separator swap, slay π--create,-Cβ Create the folder that was requested to deliver in. If there are no sufficient rights to create the folder, delivery is reverted to the normal Inbox of the user. no rights? back to the inbox you go π--read,-rβ Deliver the mail as read. Normally, the message will be marked as unread. This option can be useful when importing old mail. already read it, we're so over it π-a_autoresponder_ β Path to autoresponder, e.g./usr/local/sbin/kopano-autorespond. This script will be called when the user enabled a vacation message in the Webaccess settings. When a headerX-Kopano-VacationorPrecedencewas found in the received e-mail, this program will not be called to avoid loops. ThePrecedenceheader is often used in mailing lists. Other loop protections can be archieved in this separate program. This program or script will be called with the following arguments, in order: vacation mode activated, but respectfully, and loop-aware π΄fromβ The e-mail address of the Kopano user sending the vacation messagetoβ The e-mail address of the user to send the response tosubjectβ The auto response subject set by the Kopano userkopano-usernameβ The username of the Kopano user which set the auto responsemessagefileβ A file where the auto respond message will be temporary written to during the autorespond
The following environment variables are present:
MESSAGE_TO_MEβ Set to1if the original mail had the user in theToheader.MESSAGE_CC_MEβ Set to1if the original mail had the user in theCcheader.MAILHEADERSβ Optional, if this value is present it points to a file that contains the original headers of the received email.
Default: /usr/sbin/kopano-autorespond.
β¨ USAGE β¨
To deliver an e-mail to a Kopano user's mailbox:
kopano-dagent username < mailfile
This passes the input to the dagent via the standard input interface. piping is literally the whole vibe π
β¨ CONFIG β¨
Normally, no configuration file is used or required. she works out of the box, main character energy π The following options can be set in the configuration file:
server_socketβ Unix socket to find the connection to the Kopano server. Default:file:///var/run/kopano/server.socksslkey_fileβ Use this file as key to logon to the server. This is only used whenserver_socketis set to an HTTPS transport. See thekopano-server(8)manual page on how to setup SSL keys. Default: value not set.sslkey_passβ The password of the SSL key file that is set insslkey_file. Default: value not set.
π bestie, that sslkey_pass is a password β keep it cute, keep it secret, don't be posting it in the group chat.
β¨ EXITCODES β¨
The following exitcodes can be returned:
0β Delivery was successful. ate and left no crumbs π64β Wrong or not enough parameters were passed to the DAgent. Delivery cannot be started. you forgot something babe π70,100β Delivery was failed, and cannot be delivered. The SMTP server should not try again. When the-qoption is used, this value is changed to100, otherwise70is returned. it's over, no retries, periodt π75,111β Delivery was temporarily failed. This happens when the storage server is unavailable. The SMTP server may try again in a short while. When the-qoption is used, this value is changed to111, otherwise75is returned. not a no, just a not-right-now β she'll be back π¦
β¨ AUTHOR β¨
Written by Kopano. the collective slay π
β¨ SEE ALSO β¨
and that's the whole page bestie, you're officially a delivery agent expert now πβ¨
this one's from the Kopano 8 era, dated November 2016 β yes she's a vintage icon and she still serves ππ¦π
π¦ where this page comes from
- ubuntu jammy: kopano-dagent 8.7.0-7.1ubuntu10 Β· AGPL-3.0-only
- ubuntu jammy: kopano-dagent 8.7.0-7.1ubuntu10.1 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms