Difference between revisions of "Postfix/fixing"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(Created page with "==How to== * '''Find where the config files are''': ** '''<code>postconf {{arg|setting_name}}</code>''', where {{arg|setting_name}} is one of the following: *** '''<code>alias...")
 
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
*** '''<code>myhostname</code>''': internet domain name for the server
 
*** '''<code>myhostname</code>''': internet domain name for the server
 
*** '''<code>myorigin</code>''': I ''think'' this sets the "from" address in outgoing mail (typically <code>/etc/mailname</code>)
 
*** '''<code>myorigin</code>''': I ''think'' this sets the "from" address in outgoing mail (typically <code>/etc/mailname</code>)
 +
*** '''<code>virtual_alias_domains</code>''': list of virtual domains we're handling (see [http://www.postfix.org/VIRTUAL_README.html Postfix Virtual Domain Hosting Howto])
 
*** '''<code>virtual_alias_maps</code>''': alias maps for virtual domains, same format as <code>alias_maps</code> (typically <code>hash:/etc/postfix/virtual</code>)
 
*** '''<code>virtual_alias_maps</code>''': alias maps for virtual domains, same format as <code>alias_maps</code> (typically <code>hash:/etc/postfix/virtual</code>)
 
** '''<code>postconf -n</code>''' will show any settings which have been changed from their defaults
 
** '''<code>postconf -n</code>''' will show any settings which have been changed from their defaults
 
** '''<code>postconf</code>''' will show a (long) list of all settings, which can either be dumped to a file for searching or viewed in a scrollable way with <code>postconf | less</code>
 
** '''<code>postconf</code>''' will show a (long) list of all settings, which can either be dumped to a file for searching or viewed in a scrollable way with <code>postconf | less</code>
==Links==
+
* '''Find out how email is handled''' by emailing a report to the mailbox for your current user:
* [http://www.postfix.org/DEBUG_README.html Postfix Debugging Howto]
+
** '''<code>sendmail {{arg|address}} &lt; file.txt</code>
 +
*** CONFIRMED. First line of file.txt should be "Subject: {{arg|subject}}", followed by a blank line, followed by the contents.
 +
** '''<code>sendmail -bv {{arg|address}}</code>''': create a what-if report: tell what would happen, but do not actually deliver mail<ref name=postfix-debug />
 +
*** UNCONFIRMED because I could not find the report in my in-box (which was empty).
 +
** '''<code>sendmail -v {{arg|address}}</code>''': create a what-happened report: deliver mail and report successes and/or failures, including replies from remote SMTP servers<ref name=postfix-debug />
 +
*** UNCONFIRMED because I could not find the report in my in-box (which was empty).
 +
==Footnote==
 +
<references>
 +
<ref name=postfix-debug>[http://www.postfix.org/DEBUG_README.html Postfix Debugging Howto]</ref>
 +
</references>

Latest revision as of 16:26, 24 February 2022

How to

  • Find where the config files are:
    • postconf <setting_name>, where <setting_name> is one of the following:
      • alias_database filespec for the main alias database ("hash:" just means a text file)
      • alias_maps seems to be the same thing?
      • config_directory: main folder where config files are stored (typically /etc/postfix)
      • mydomain: not sure what this specifically does, but it seems significant
      • myhostname: internet domain name for the server
      • myorigin: I think this sets the "from" address in outgoing mail (typically /etc/mailname)
      • virtual_alias_domains: list of virtual domains we're handling (see Postfix Virtual Domain Hosting Howto)
      • virtual_alias_maps: alias maps for virtual domains, same format as alias_maps (typically hash:/etc/postfix/virtual)
    • postconf -n will show any settings which have been changed from their defaults
    • postconf will show a (long) list of all settings, which can either be dumped to a file for searching or viewed in a scrollable way with postconf | less
  • Find out how email is handled by emailing a report to the mailbox for your current user:
    • sendmail <address> < file.txt
      • CONFIRMED. First line of file.txt should be "Subject: <subject>", followed by a blank line, followed by the contents.
    • sendmail -bv <address>: create a what-if report: tell what would happen, but do not actually deliver mail[1]
      • UNCONFIRMED because I could not find the report in my in-box (which was empty).
    • sendmail -v <address>: create a what-happened report: deliver mail and report successes and/or failures, including replies from remote SMTP servers[1]
      • UNCONFIRMED because I could not find the report in my in-box (which was empty).

Footnote