Solved

Postfix issue

Posted on 2010-09-10
12
1,441 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 15

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 15

Expert Comment

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

touch /etc/postfix/transport

then
postmap /etc/postfix/transport
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
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 15

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
 
LVL 15

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 15

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 15

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…

705 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