RT4.2 with Ubuntu13.10 and Postfix

I am a bit of a Noob. Please bear with me. I have successfully installed
Ubuntu13.10 and RT4.2, but I am having problems getting the rt-mailgate to
create a ticket when emailed. I must be missing a step. I am able to email
users when manually creating a ticket in RT, but replies and comments do not
work. Below are my config files:
RT_Siteconfig.pm
Set( $rtname, ‘NHSoCal’);
Set( $Organization, ‘nhsocal.com’);
Set( $Timezone, ‘US/Pacific’);
Set( $WebDomain, ‘rtv4.nhsocal.com’);
Set( $WebPort, 443);
Set( $WebPath, ‘’);
Set( $DatabasePassword, ‘4rtW0rk!’);
Set( $CorrespondAddress, ‘rt4ticket@nhsocal.com’);
Set( $CommentAddress, ‘rt4comment@nhsocal.com’);
#Set( $MaxAttachmentSize, 10000000);
#Set( $FriendlyFromLineFormat, “"%s" <%s>”);

root@RTv4:/opt/rt4/etc# cat /etc/aliases

See man 5 aliases for format

#postmaster: root
rt4ticket: “|/opt/rt4/bin/rt-mailgate --queue General --action correspond
–url https://rtv4.nhsocal.com/
rt4comment: “|/opt/rt4/bin/rt-mailgate --queue General --action comment
–url https://rtv4.nhsocal.com/

Apache2 Config:
000-default.conf default-ssl.conf rt.conf
root@RTv4:/etc/apache2/sites-available# cat rt.conf


# Request Tracker
ServerName rtv4.nhsocal.com:443
AddDefaultCharset UTF-8
DocumentRoot /opt/rt4/share/html
Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/

## Apache version < 2.4 (e.g. Debian 7.2)
#Order allow,deny
#Allow from all
## Apache 2.4
Require all granted

<Directory “/opt/rt4/sbin”>
SSLOptions +StdEnvVars

            #ServerAdmin webmaster@localhost

            #DocumentRoot /var/www

            # Available loglevels: trace8, ..., trace1, debug, info,

notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for
particular
# modules, e.g.
#LogLevel info ssl:warn

            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined

PostFix Config

root@RTv4:/etc/postfix# cat main.cf

See /usr/share/postfix/main.cf.dist for a commented, more complete version

Debian specific: Specifying a file name will cause the first

line of that file to be used as the name. The Debian default

is /etc/mailname.

#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

appending .domain is the MUA’s job.

append_dot_mydomain = no

Uncomment the next line to generate “delayed mail” warnings

#delay_warning_time = 4h

readme_directory = no

myhostname = rtv4.nhsocal.com
alias_maps = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = rtv4.nhsocal.com, localhost.nhsocal.com, localhost
relayhost = 10.10.1.37
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#mainbox_command = procmail -a “$EXTENSION”
#mailbox_size_limit = 0
#recipient_delimiter = +
#inet_interfaces = all

View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783.html


root@RTv4:/opt/rt4/etc# cat /etc/aliases

See man 5 aliases for format

#postmaster: root
rt4ticket: “|/opt/rt4/bin/rt-mailgate --queue General --action correspond
–url https://rtv4.nhsocal.com/
rt4comment: “|/opt/rt4/bin/rt-mailgate --queue General --action comment
–url https://rtv4.nhsocal.com/

Is --url https://rtv4.nhsocal.com/" really on a separate line in this file?
If so it should not be. Is /etc/aliases the right file? Check main.cf for
postfix and check and see what is defined for the alias_maps file. Also -
If alias_maps is defined as a hash in your postfix main.cf file you must
rebuild it. Example:
Under Ubuntu you can use “newaliases” to rebuild the the aliases.db file
with the file specified as the alias_maps file as the source.

You might want to check this out:
https://help.ubuntu.com/community/PostfixBasicSetupHowto#Local_Alias_database

Landon Stewart :: lstewart@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932

Thanks for the prompt response. I think the copy/paste wrapped. I verified
the aliases as a single line.

I also cp /etc/aliases /etc/postfix/aliases
Ran postalias /etc/aliases to create the aliases.db
modified the main.cf

myhostname = rtv4.nhsocal.com
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases.db

myorigin = /etc/mailname
mydestination = rtv4.nhsocal.com, localhost.nhsocal.com, localhost
relayhost = 10.10.1.37
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#mainbox_command = procmail -a “$EXTENSION”
#mailbox_size_limit = 0
#recipient_delimiter = +
#inet_interfaces = all

I will try the virtual thing, but it is a little over my head.

View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783p55786.html

Check logs and look for bounces.On Tuesday, November 12, 2013, mmahoney wrote:

Thanks for the prompt response. I think the copy/paste wrapped. I verified
the aliases as a single line.

I also cp /etc/aliases /etc/postfix/aliases
Ran postalias /etc/aliases to create the aliases.db
modified the main.cf

myhostname = rtv4.nhsocal.com
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases.db

myorigin = /etc/mailname
mydestination = rtv4.nhsocal.com, localhost.nhsocal.com, localhost
relayhost = 10.10.1.37
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#mainbox_command = procmail -a “$EXTENSION”
#mailbox_size_limit = 0
#recipient_delimiter = +
#inet_interfaces = all

I will try the virtual thing, but it is a little over my head.


View this message in context:
http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783p55786.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

Landon Stewart :: lstewart@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932

Soooo the firewall was on… ufw allow 25 fixed that which got me closer. But
now the HTTP"s" is failing because of the certificate.

Nov 12 21:08:44 RTv4 postfix/local[6445]: 908C7480ECE:
to=rt4ticket@rtv4.nhsocal.com, relay=local, delay=0.32,
delays=0.04/0.02/0/0.26, dsn=4.3.0, status=deferred (temporary failure.
Command output: HTTP request failed: 500 Can’t connect to
rtv4.nhsocal.com:443 (certificate verify failed). Your webserver logs may
have more information or there may be a network problem. )

Ugh… checking on that.

View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783p55788.html

Open http and then use mod_rewrite for connections to http from everyone
else other than localhost to hit https then tell aliases to use http.On Tuesday, November 12, 2013, mmahoney wrote:

Soooo the firewall was on… ufw allow 25 fixed that which got me closer.
But
now the HTTP"s" is failing because of the certificate.

Nov 12 21:08:44 RTv4 postfix/local[6445]: 908C7480ECE:
to=<rt4ticket@rtv4.nhsocal.com <javascript:;>>, relay=local, delay=0.32,
delays=0.04/0.02/0/0.26, dsn=4.3.0, status=deferred (temporary failure.
Command output: HTTP request failed: 500 Can’t connect to
rtv4.nhsocal.com:443 (certificate verify failed). Your webserver logs may
have more information or there may be a network problem. )

Ugh… checking on that.


View this message in context:
http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783p55788.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

Landon Stewart :: lstewart@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932

Landon, I apologize but those instructions are a bit over my head and I don’t
understand them.

View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783p55798.html

Read the mailgate documentation (options ca-file path and no-verify-ssl):
http://www.bestpractical.com/docs/rt/4.2/rt-mailgate.html

ChrisAm 13.11.2013 18:03, schrieb mmahoney:

Landon, I apologize but those instructions are a bit over my head and I don’t
understand them.


View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783p55798.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

–no-verify-ssl worked! I added that to the aliases, rebuilt the aliases db,
restarted postfix and viola!

Case closed. The answer was right in the rt-mailgate documentation and I
missed it. Instructions are best understood by those who already know how, I
guess.

closed

View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783p55822.html

Your post helped to fix my same exact problem , thanks.

View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-2-with-Ubuntu13-10-and-Postfix-tp55783p56032.html