This is a discussion on Re: mail relay within the mailing.postfix.users forums, part of the Mail Servers and Related category; Casey Boone wrote: > my "logs prove otherwise"? my logs only prove that i am using 1 > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Casey Boone wrote:
> my "logs prove otherwise"? my logs only prove that i am using 1 > component of sendmail, nothing more and not really which one. that 1 > component is /bin/mail. are you sure? /bin/mail is a standard unix program. but let's forget. modify your /etc/mailer.conf to use postfix compatibility sendmail instead of Sendmail. Now you have the right to use whatever components you want. but that complicates troubleshooting. [snip] > > Jun 3 17:02:32 theflash postfix/trivial-rewrite[17160]: running: > PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin? xxgdb > /usr/local/libexec/postfix/trivial-rewrite 17160 & sleep 5 > > Jun 3 17:02:37 theflash postfix/trivial-rewrite[17160]: warning: do not > list domain theflash.shawneelink.net in BOTH mydestination and > virtual_mailbox_domains > > postfix trivial-rewrite kicks in, warns of a hostname being specified in > two places when it is only specified in the first and digimancer.com is > the only domain specified in the second. Where is the output from postmap -q that Viktor told you to run? <Quoting Viktor> $ postmap -q theflash.shawneelink.net \ mysql:/usr/local/etc/postfix/virtualdomains.cf produces what results? Has main.cf been changed since trivial-rewrite started? </Quoting> > > Jun 3 17:02:37 theflash postfix/smtpd[17156]: NOQUEUE: reject: RCPT > from theflash.shawneelink.net[127.0.0.1]: 550 <caseyboone@gmail.com>: > Recipient address rejected: User unknown in virtual mailbox table; > from=<cboone@theflash.shawneelink.net> to=<caseyboone@gmail.com> so gmail.com is one of your virtual domains. do postmap -q gmail.com mysql:.... as above but with gmail.com this time. > proto=ESMTP helo=<theflash.shawneelink.net>Jun 3 17:02:37 theflash > sendmail[17155]: j53M2REJ017155: to=caseyboone@gmail.com, ctladdr=cboone > (500/500), delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=30045, > relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown > > postfix rejecting caseyboone@gmail.com because it isnt in the local > virtual users table.... no attempts made at relaying that i can see > despite "mailer=relay" We will say nothing about you running Sendmail components if you stop talking about what these components log. Seems fair, no? postfix thinks gmail.com is one of your virtual domains. try to see why. do the postmap -q things. > > > [snip] > i still dont see why default_transport and relayhost are not being > honored and why it thinks everything is destined for local virtual > mailboxes. The rcpt domain is considered virtual, so postfix won't send such messages to the public. so both transport and relayhost don't count. There is possibly a bug in your mysql table. use postmap -q, and if you still don't find, run mysql server with debugging enabled and look at its logs. |