Difference between revisions of "PostfixConfig"

From Request Tracker Wiki
Jump to navigation Jump to search
(Created page with "==Edit /etc/alias== Mailgate can receive piped emails through ''/etc/alias''. Edit ''/etc/alias'' with entries for your queue names: helpdesk: "|/usr/bin/rt-mailgate --queue he...")
 
m (2 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
==Edit /etc/alias==
==Edit /etc/alias==
Mailgate can receive piped emails through ''/etc/alias''.
[[Mailgate]] processes emails piped through ''/etc/alias''.


Edit ''/etc/alias'' with entries for your queue names:
*Edit ''/etc/alias'' with entries for your queue names:
  helpdesk: "|/usr/bin/rt-mailgate --queue helpdesk --action correspond --url http://rt.domain.com/rt"
  helpdesk: "|/usr/bin/rt-mailgate --queue helpdesk --action correspond --url http://rt.domain.com/rt"
  helpdesk-comment: "|/usr/bin/rt-mailgate --queue helpdesk --action comment --url http://rt.domain.com/rt"
  helpdesk-comment: "|/usr/bin/rt-mailgate --queue helpdesk --action comment --url http://rt.domain.com/rt"
Line 12: Line 12:
  infra-comment: "|/usr/bin/rt-mailgate --queue infra --action comment --url http://rt.domain.com/rt"
  infra-comment: "|/usr/bin/rt-mailgate --queue infra --action comment --url http://rt.domain.com/rt"


Run ''newaliases'' to create the new aliases.db file for postfix.
*Run ''newaliases'' to create the new aliases.db file for postfix.
Reload postfix - ''service postfix reload'' - ''/etc/init.d/postfix reload''
 
*Reload postfix - ''service postfix reload'' - ''/etc/init.d/postfix reload''


==Configure Apache==
==Configure Apache==

Latest revision as of 16:20, 6 April 2016

Edit /etc/alias

Mailgate processes emails piped through /etc/alias.

  • Edit /etc/alias with entries for your queue names:
helpdesk: "|/usr/bin/rt-mailgate --queue helpdesk --action correspond --url http://rt.domain.com/rt"
helpdesk-comment: "|/usr/bin/rt-mailgate --queue helpdesk --action comment --url http://rt.domain.com/rt"
office: "|/usr/bin/rt-mailgate --queue office --action correspond --url http://rt.domain.com/rt"
office-comment: "|/usr/bin/rt-mailgate --queue office --action comment --url http://rt.domain.com/rt"
support: "|/usr/bin/rt-mailgate --queue support --action correspond --url http://rt.domain.com/rt"
support-comment: "|/usr/bin/rt-mailgate --queue support --action comment --url http://rt.domain.com/rt"
infra: "|/usr/bin/rt-mailgate --queue infra --action correspond --url http://rt.domain.com/rt"
infra-comment: "|/usr/bin/rt-mailgate --queue infra --action comment --url http://rt.domain.com/rt"
  • Run newaliases to create the new aliases.db file for postfix.
  • Reload postfix - service postfix reload - /etc/init.d/postfix reload

Configure Apache

Edit your entry for RT to allow connections from your IP:

# Limit mail gateway access to localhost by default

   Order Allow,Deny
   Allow from 127.0.0.1
   Allow from 10.10.10.220 (whatever your machine's IP is)