Not logged in : Login
(Sponging disallowed)

About: SMTP local mailer     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : foaf:Document, within Data Space : linkeddata.uriburner.com:28898 associated with source document(s)

AttributesValues
type
Title
  • SMTP local mailer
content
  • Installation instructions The Virtuoso server can store the incoming mail into the database using it's own local mailer implementation. The following sections detail the configuration of each type of mail environment. Replacing procmail as default handler in sendmail configurations Copy virt_mail to /usr/bin/virt_mail Copy odbc_mail.default.ini to /etc/odbc_mail.ini IMPORTANT: Make sure /etc/odbc_mail.ini is NOT GROUP/WORLD writable, otherwise virt_mail will fail to run. Edit /etc/odbc_mail.ini and change the login settings to match your current database installation. If you don't have or want to use procmail, comment out the "Fallback" setting in the [Deliver] section. Edit /etc/sendmail.cf. Change: Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40, T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u into: Mlocal, P=/usr/bin/virt_mail, F=lsDFMA5:/|@qSPhn9, S=10/30, R=20/40, T=DNS/RFC822/X-Unix, A=virt_mail -c /etc/odbc_mail.ini -l $u -s $g NOTE: The changes to the F= setting involve removing both the 'w' and 'f' flags. The removal of the 'w' flag affects lookups in /etc/passwd, which are no longer required if all mail drops go into the database. The default ini file is set up to maildrop to procmail, which will perform this check correctly. Per-user database maildrops under sendmail Copy odbc_mail.default.ini to ~the_user_name/.odbc_mail.ini IMPORTANT: Make sure the .odbc_mail.ini is NOT GROUP/WORLD writable, otherwise virt_mail will fail to run. Put at the end of ~the_user_name/.procmailrc something like: :0: | /usr/bin/virt_mail -c .odbc_mail.ini -l the_user_name replacing the_user_name with the user you're setting up. Note: the '-l ..' parameter is used to relate the local recipient to the database user for which the maildrop is done. See the remarks in the odbc_mail.default.ini file. Adjust the parameters in .odbc_mail.ini to match your configuration IMPORTANT - also disable Fallback delivery in .odbc_mail.ini Comment out the "Fallback =" entry in the .odbc_mail.ini or set it to something that doesn't involve procmail. Otherwise, this could lead to drop loops. Per-user database maildrops under qmail Copy odbc_mail.default.ini to ~the_user_name/.odbc_mail.ini IMPORTANT: Make sure the .odbc_mail.ini is NOT GROUP/WORLD writable, otherwise virt_mail will fail to run. If you're setting up a .qmail, simply do something like | /usr/bin/virt_mail -m qmail -c .odbc_mail.ini If you're setting up .qmail-default or .qmail-<some_alias_name>, make sure you adjust the RemovePrefix accordingly in the odbc_mail.ini. This also works if a single user is receiving mail for an entire (virtual) domain. If you want to configure qmail so that user 'db' gets all mail for example.com, do this: Create a new user db in /etc/passwd etc. Remove example.com from /var/qmail/control/locals Add to /var/qmail/controls/virtualdomains: example.com:db Adjust /var/qmail/users/assign accordingly: =db:db:<uid>:<gid>:<home>::: +db-:db:<uid>:<gid>:<home>:-:: or run qmail-pw2u < /etc/passwd > /var/qmail/users/assign then run qmail-newu and restart qmail In ~db/.qmail-default, put: | /usr/bin/virt_mail -m qmail -c .odbc_mail.ini In .odbc_mail.ini, set RemovePrefix=db- Now, mail to info@example.com will be delivered to the qmail alias db-info@example.com and is stored into the database for user 'info'. Adjust the parameters in .odbc_mail.ini to match your configuration Per-user database maildrops under courier Copy odbc_mail.default.ini to ~the_user_name/.odbc_mail.ini IMPORTANT: Make sure the .odbc_mail.ini is NOT GROUP/WORLD writable, otherwise virt_mail will fail to run. If you're setting up a .courier, simply do something like | /usr/bin/virt_mail -mcourier -c .odbc_mail.ini If you're setting up .courier-default or .courier-<some_alias_name>, make sure you adjust the RemovePrefix accordingly in the .odbc_mail.ini. Note 1: Although courier is very similar to qmail in this respect, it is different from qmail in how it handles exit codes. If you use -mqmail while running under courier, you'll get the wrong exit codes, so mail is bounced instead of retried. Note 2: If delivering to multiple recipients in a .courier file, make sure the virt_mail is specified first. This is because if the virt_mail fails with a temporary error, the other recipients will get another drop when courier re-attempts to deliver the mail. Right: | /usr/bin/virt_mail -mcourier -c .odbc_mail.ini ./Maildir Wrong: ./Maildir | /usr/bin/virt_mail -mcourier -c .odbc_mail.ini Adjust the parameters in .odbc_mail.ini to match your configuration EXIM Here are code snippets for Exim that perform maildrops into the odbc database. ## IN TRANSPORT SECTION # Delivers into the database odbc: driver = pipe command = /usr/bin/virt_mail \ -c /etc/odbc_mail.ini \ -s "${if def:return_path{$return_path}{MAILER-DAEMON}}" \ -l "$local_part" user = USERNAME return_path_add delivery_date_add prefix = suffix = temp_errors = 73 : 74 : 75 return_fail_output # NOTE: Make sure the USERNAME in the 'user = USERNAME' setting matches # the owner of /etc/odbc_mail.ini, because this file must have mode 0600. # Consider creating a new user account for this delivery only. # You should specify 'user = root' here only if Fallback delivery is # configured in /etc/odbc_mail.ini (for procmail fallback delivery # for instance) ## IN DIRECTORS SECTION # Attempts delivery of all mail into the database to_db: driver = smartuser transport = odbc require_files = /etc/odbc_mail.ini # # uncomment line below to deliver all mail to db-XXX into the database, for any # value of XXX. For this to work, set "RemovePrefix = db-" in # the [Translate] section in /etc/odbc_mail.ini #prefix = db-
has container
description
  • Storing incoming mail into the DataBase
dcterms:created_at
  • Fri, 27 Dec 2019 14:12:53 GMT
content:encoded
  • Installation instructions The Virtuoso server can store the incoming mail into the database using it&#39;s own local mailer implementation. The following sections detail the configuration of each type of mail environment. Replacing procmail as default handler in sendmail configurations Copy virt_mail to /usr/bin/virt_mail Copy odbc_mail.default.ini to /etc/odbc_mail.ini IMPORTANT: Make sure /etc/odbc_mail.ini is NOT GROUP/WORLD writable, otherwise virt_mail will fail to run. Edit /etc/odbc_mail.ini and change the login settings to match your current database installation. If you don&#39;t have or want to use procmail, comment out the &quot;Fallback&quot; setting in the [Deliver] section. Edit /etc/sendmail.cf. Change: Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40, T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u into: Mlocal, P=/usr/bin/virt_mail, F=lsDFMA5:/|@qSPhn9, S=10/30, R=20/40, T=DNS/RFC822/X-Unix, A=virt_mail -c /etc/odbc_mail.ini -l $u -s $g NOTE: The changes to the F= setting involve removing both the &#39;w&#39; and &#39;f&#39; flags. The removal of the &#39;w&#39; flag affects lookups in /etc/passwd, which are no longer required if all mail drops go into the database. The default ini file is set up to maildrop to procmail, which will perform this check correctly. Per-user database maildrops under sendmail Copy odbc_mail.default.ini to ~the_user_name/.odbc_mail.ini IMPORTANT: Make sure the .odbc_mail.ini is NOT GROUP/WORLD writable, otherwise virt_mail will fail to run. Put at the end of ~the_user_name/.procmailrc something like: :0: | /usr/bin/virt_mail -c .odbc_mail.ini -l the_user_name replacing the_user_name with the user you&#39;re setting up. Note: the &#39;-l ..&#39; parameter is used to relate the local recipient to the database user for which the maildrop is done. See the remarks in the odbc_mail.default.ini file. Adjust the parameters in .odbc_mail.ini to match your configuration IMPORTANT - also disable Fallback delivery in .odbc_mail.ini Comment out the &quot;Fallback =&quot; entry in the .odbc_mail.ini or set it to something that doesn&#39;t involve procmail. Otherwise, this could lead to drop loops. Per-user database maildrops under qmail Copy odbc_mail.default.ini to ~the_user_name/.odbc_mail.ini IMPORTANT: Make sure the .odbc_mail.ini is NOT GROUP/WORLD writable, otherwise virt_mail will fail to run. If you&#39;re setting up a .qmail, simply do something like | /usr/bin/virt_mail -m qmail -c .odbc_mail.ini If you&#39;re setting up .qmail-default or .qmail-&lt;some_alias_name&gt;, make sure you adjust the RemovePrefix accordingly in the odbc_mail.ini. This also works if a single user is receiving mail for an entire (virtual) domain. If you want to configure qmail so that user &#39;db&#39; gets all mail for example.com, do this: Create a new user db in /etc/passwd etc. Remove example.com from /var/qmail/control/locals Add to /var/qmail/controls/virtualdomains: example.com:db Adjust /var/qmail/users/assign accordingly: =db:db:&lt;uid&gt;:&lt;gid&gt;:&lt;home&gt;::: +db-:db:&lt;uid&gt;:&lt;gid&gt;:&lt;home&gt;:-:: or run qmail-pw2u &lt; /etc/passwd &gt; /var/qmail/users/assign then run qmail-newu and restart qmail In ~db/.qmail-default, put: | /usr/bin/virt_mail -m qmail -c .odbc_mail.ini In .odbc_mail.ini, set RemovePrefix=db- Now, mail to info@example.com will be delivered to the qmail alias db-info@example.com and is stored into the database for user &#39;info&#39;. Adjust the parameters in .odbc_mail.ini to match your configuration Per-user database maildrops under courier Copy odbc_mail.default.ini to ~the_user_name/.odbc_mail.ini IMPORTANT: Make sure the .odbc_mail.ini is NOT GROUP/WORLD writable, otherwise virt_mail will fail to run. If you&#39;re setting up a .courier, simply do something like | /usr/bin/virt_mail -mcourier -c .odbc_mail.ini If you&#39;re setting up .courier-default or .courier-&lt;some_alias_name&gt;, make sure you adjust the RemovePrefix accordingly in the .odbc_mail.ini. Note 1: Although courier is very similar to qmail in this respect, it is different from qmail in how it handles exit codes. If you use -mqmail while running under courier, you&#39;ll get the wrong exit codes, so mail is bounced instead of retried. Note 2: If delivering to multiple recipients in a .courier file, make sure the virt_mail is specified first. This is because if the virt_mail fails with a temporary error, the other recipients will get another drop when courier re-attempts to deliver the mail. Right: | /usr/bin/virt_mail -mcourier -c .odbc_mail.ini ./Maildir Wrong: ./Maildir | /usr/bin/virt_mail -mcourier -c .odbc_mail.ini Adjust the parameters in .odbc_mail.ini to match your configuration EXIM Here are code snippets for Exim that perform maildrops into the odbc database. ## IN TRANSPORT SECTION # Delivers into the database odbc: driver = pipe command = /usr/bin/virt_mail \ -c /etc/odbc_mail.ini \ -s &quot;${if def:return_path{$return_path}{MAILER-DAEMON}}&quot; \ -l &quot;$local_part&quot; user = USERNAME return_path_add delivery_date_add prefix = suffix = temp_errors = 73 : 74 : 75 return_fail_output # NOTE: Make sure the USERNAME in the &#39;user = USERNAME&#39; setting matches # the owner of /etc/odbc_mail.ini, because this file must have mode 0600. # Consider creating a new user account for this delivery only. # You should specify &#39;user = root&#39; here only if Fallback delivery is # configured in /etc/odbc_mail.ini (for procmail fallback delivery # for instance) ## IN DIRECTORS SECTION # Attempts delivery of all mail into the database to_db: driver = smartuser transport = odbc require_files = /etc/odbc_mail.ini # # uncomment line below to deliver all mail to db-XXX into the database, for any # value of XXX. For this to work, set &quot;RemovePrefix = db-&quot; in # the [Translate] section in /etc/odbc_mail.ini #prefix = db-
is container of of
Faceted Search & Find service v1.17_git144 as of Jul 26 2024


Alternative Linked Data Documents: iSPARQL | ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3331 as of Aug 25 2024, on Linux (x86_64-ubuntu_noble-linux-glibc2.38-64), Single-Server Edition (378 GB total memory, 16 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software