Solved

Postfix issue

Posted on 2010-09-10
12
1,428 Views
Last Modified: 2013-11-30
Hi all,

I setup a Postfix for the sake of forwarding any nagios alerts to my administrator account inbox on the exchange 2007 box.  However I tried a few tips to get the forward to act correctly but havent had much luck thus far.  I checked the mailog and here is what I get.

Sep 10 16:04:55 Monitor postfix/master[1183]: warning: process /usr/lib/postfix/trivial-rewrite pid 9492 exit status 1
Sep 10 16:04:55 Monitor postfix/master[1183]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Sep 10 16:05:55 Monitor postfix/trivial-rewrite[9546]: fatal: open database /etc/postfix/transport.db: No such file or directory
Sep 10 16:05:56 Monitor postfix/master[1183]: warning: process /usr/lib/postfix/trivial-rewrite pid 9546 exit status 1
Sep 10 16:05:56 Monitor postfix/master[1183]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Sep 10 16:06:56 Monitor postfix/trivial-rewrite[9589]: fatal: open database /etc/postfix/transport.db: No such file or directory
Sep 10 16:06:57 Monitor postfix/master[1183]: warning: process /usr/lib/postfix/trivial-rewrite pid 9589 exit status 1
Sep 10 16:06:57 Monitor postfix/master[1183]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Sep 10 16:07:57 Monitor postfix/trivial-rewrite[9654]: fatal: open database /etc/postfix/transport.db: No such file or directory
Sep 10 16:07:58 Monitor postfix/master[1183]: warning: process /usr/lib/postfix/trivial-rewrite pid 9654 exit status 1
Sep 10 16:07:58 Monitor postfix/master[1183]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Sep 10 16:08:58 Monitor postfix/trivial-rewrite[9741]: fatal: open database /etc/postfix/transport.db: No such file or directory
Sep 10 16:08:59 Monitor postfix/master[1183]: warning: process /usr/lib/postfix/trivial-rewrite pid 9741 exit status 1
Sep 10 16:08:59 Monitor postfix/master[1183]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Sep 10 16:09:59 Monitor postfix/trivial-rewrite[9815]: fatal: open database /etc/postfix/transport.db: No such file or directory
Sep 10 16:10:00 Monitor postfix/master[1183]: warning: process /usr/lib/postfix/trivial-rewrite pid 9815 exit status 1
Sep 10 16:10:00 Monitor postfix/master[1183]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Sep 10 16:11:00 Monitor postfix/trivial-rewrite[9860]: fatal: open database /etc/postfix/transport.db: No such file or directory
Sep 10 16:11:01 Monitor postfix/master[1183]: warning: process /usr/lib/postfix/trivial-rewrite pid 9860 exit status 1
Sep 10 16:11:01 Monitor postfix/master[1183]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling


So far what i have done is

/etc/postfix/transport
abc.com      smtp:[exchpool1.name.local]

/etc/postfix/main.cf
relay_domans=$transport_maps
transport_maps=hash:/etc/postfix/transport
mynetworks=127.0.0.1,192.168.1.0/24

I have not configured any exchange connectors to accept this incoming connection as I was told I wasnt supposed to do anything.
0
Comment
Question by:cjameson74
  • 6
  • 6
12 Comments
 
LVL 14

Accepted Solution

by:
DonConsolio earned 500 total points
ID: 33650731
as root:

postmap /etc/postfix/transport
0
 
LVL 1

Author Comment

by:cjameson74
ID: 33650752
returns fatal: open /etc/postfix/transport No Such file or directory
0
 
LVL 14

Expert Comment

by:DonConsolio
ID: 33650946
create empty "/etc/postfix/transport" with

touch /etc/postfix/transport

then
postmap /etc/postfix/transport
0
 
LVL 1

Author Comment

by:cjameson74
ID: 33650992
I did that the mail left the queue but I got an error msg:


Sep 10 16:44:29 Monitor postfix/postfix-script[3241]: refreshing the Postfix mail system
Sep 10 16:44:29 Monitor postfix/master[1207]: reload -- version 2.7.0, configuration /etc/postfix
Sep 10 16:45:13 Monitor postfix/pickup[3246]: C74CB48B51: uid=0 from=<user@Monitor.DomainServer.net>
Sep 10 16:45:13 Monitor postfix/trivial-rewrite[3592]: warning: database /etc/postfix/transport.db is older than source file /etc/postfix/transport
Sep 10 16:45:13 Monitor postfix/cleanup[3591]: C74CB48B51: message-id=<1284155113.3574@Monitor.DomainServer.net>
Sep 10 16:45:13 Monitor postfix/qmgr[3247]: C74CB48B51: from=<user@Monitor.DomainServer.net>, size=599, nrcpt=1 (queue active)
Sep 10 16:45:13 Monitor postfix/local[3593]: warning: database /etc/aliases.db is older than source file /etc/aliases
Sep 10 16:45:13 Monitor postfix/local[3593]: C74CB48B51: to=<root@localhost>, relay=local, delay=0.09, delays=0.06/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 10 16:45:13 Monitor postfix/qmgr[3247]: C74CB48B51: removed
0
 
LVL 1

Author Comment

by:cjameson74
ID: 33650995
This happens when I try to send an email to an account on the exchange 07 box....I can send within like from a user account to root@localhost
0
 
LVL 14

Expert Comment

by:DonConsolio
ID: 33651028
there seems to be a problem with the time/date on your system

try (as root) :

rm  /etc/postfix/transport.db
touch /etc/postfix/transport
postmap /etc/postfix/transport

rm /etc/aliases.db
touch /etc/aliases
newaliases

0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 14

Expert Comment

by:DonConsolio
ID: 33651030
and verify date/time is set correctly
0
 
LVL 1

Author Comment

by:cjameson74
ID: 33651057
I did what you said and the date and time is fine...

Heres what happened this time...the mail is gone from the server but it might be hitting the exchange server and gettin rejected

Sep 10 17:33:08 Monitor postfix/pickup[3246]: BC5104AFBC: uid=0 from=<root@Monitor.DomainServer.net>
Sep 10 17:33:08 Monitor postfix/cleanup[7068]: BC5104AFBC: message-id=<1284157988.7047@Monitor.DomainServer.net>
Sep 10 17:33:08 Monitor postfix/qmgr[3247]: BC5104AFBC: from=<root@Monitor.DomainServer.net>, size=396, nrcpt=1 (queue active)
Sep 10 17:33:08 Monitor postfix/error[7071]: BC5104AFBC: to=<cjameson@americanriskins.com>, relay=none, delay=0.2, delays=0.14/0.01/0/0.04, dsn=5.0.0, status=bounced (americanriskins.com)
Sep 10 17:33:08 Monitor postfix/cleanup[7068]: D00564B23F: message-id=<20100910223308.D00564B23F@Monitor.DomainServer.net>
Sep 10 17:33:08 Monitor postfix/qmgr[3247]: D00564B23F: from=<>, size=2234, nrcpt=1 (queue active)
Sep 10 17:33:08 Monitor postfix/bounce[7072]: BC5104AFBC: sender non-delivery notification: D00564B23F
Sep 10 17:33:08 Monitor postfix/qmgr[3247]: BC5104AFBC: removed
Sep 10 17:33:08 Monitor postfix/cleanup[7068]: DD8C348B51: message-id=<20100910223308.D00564B23F@Monitor.DomainServer.net>
Sep 10 17:33:08 Monitor postfix/qmgr[3247]: DD8C348B51: from=<>, size=2383, nrcpt=1 (queue active)
Sep 10 17:33:08 Monitor postfix/local[7075]: D00564B23F: to=<root@Monitor.DomainServer.net>, relay=local, delay=0.06, delays=0.02/0.03/0/0.02, dsn=2.0.0, status=sent (forwarded as DD8C348B51)
Sep 10 17:33:08 Monitor postfix/qmgr[3247]: D00564B23F: removed
Sep 10 17:33:14 Monitor postfix/smtp[7078]: DD8C348B51: to=<cjameson@exchange.domainserver.net>, orig_to=<root@Monitor.DomainServer.net>, relay=192.168.1.212[192.168.1.212]:25, delay=5.1, delays=0.01/0.06/0.01/5.1, dsn=5.7.1, status=bounced (host 192.168.1.212[192.168.1.212] said: 550 5.7.1 Unable to relay (in reply to RCPT TO command))
Sep 10 17:33:24 Monitor postfix/qmgr[3247]: DD8C348B51: removed
0
 
LVL 14

Expert Comment

by:DonConsolio
ID: 33651083
> 550 5.7.1 Unable to relay (in reply to RCPT TO command))

the exchange server you are trying to send mail to does not forward mail for you

configure exchange to relay smtp mail from your IP address
http://technet.microsoft.com/en-us/library/dd277329.aspx
0
 
LVL 1

Author Comment

by:cjameson74
ID: 33651440
All Im trying to do is send email to an account on my exchange server?  How does the postfix box know which mailbox to send it to?
0
 
LVL 1

Author Comment

by:cjameson74
ID: 33651894
Hmmm.  The link you sent was for exchange 2000/03.  In 07 there are no virtual servers.  I googled some links on this but havent had much luck
0
 
LVL 14

Expert Comment

by:DonConsolio
ID: 33656810

Allowing application servers to relay off Exchange Server 2007
http://msexchangeteam.com/archive/2006/12/28/432013.aspx
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This short article will present "How to import ICS Calendar onto Office 365 Calendar". I was searching for free (or not free) tools to convert ICS to CSV without success. The only tools I found & working well were online tools...this was too hard to…
MS outlook is a premier email client that enable you to send and receive the e-mails with various file formats of attachments such as document files, media file, and many others formats. There is some scenario occurs when a receiver of an e-mail mes…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now