LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-06-2009, 10:12 AM   #1
frank09
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Unhappy Strange Postfix queries on mySQL


Hi all,
I'd like to ask for some help in making postfix work on my ubuntu box.
Please note: I'm not so expert in Linux, but learning with hands on!

I tried installing a mail system following step by step the valuable Abrahamsen guide (http://flurdy.com/docs/postfix/). But... when I began testing at half way (only basic services installed, mysql tables filled with my domain's data, but without content filtering or antivirus), I can't understand Postfix behaviour in querying on MySQL.

Let's say that the system has domain frog.com.

When I test connecting to port 25 and submitting a mail like this:
HELO anydomain.com
MAIL FROM: anyperson@anydomain.com
RCPT TO: frank@frog.com

from mysql log, I see that Postfix queries for (apart from the 'enabled' condition at the end):
1) SELECT domain FROM domains WHERE domain='anydomain.com'
2) SELECT destination FROM aliases WHERE mail='frog.com'
3) SELECT domain FROM domains WHERE domain='frog.com'

and session ends with NOQUEUE: reject: RCPT from localhost: 554 5.7.1 Service unavailable; Client host [127.0.0.1] blocked using sbl.spamhaus.org; from=<frank@anydomain.com> to=<frank@frog.com> proto=SMTP helo=<anydomain.com>

My questions are:
1) why does it check from sender domain being present in domains table?
2) why does it lookup only the domain frog.com in the destination field, while the whole address frank@frog.com is present in the aliases table, according to the guide instructions?


Thank you very much, I'm getting lost with setting up the mail system!
francesco




To be complete, below I report my tables content:


Code:
*** DOMAINS
domain                transport
------                ---------
localhost             virtual:
localhost.localdomain virtual:
frog.com              virtual:
Code:
*** ALIASES
mail                                   destination
-------------------------------------- -------------------
postmaster/sysadmin/root/...@localhost root@localhost
@localhost                             root@localhost
@localhost.localdomain                 @localhost
frank@frog.com                         frank@frog.com
@frog.com                              @frog.com
Code:
*** USERS
id             uid  gid  home                    maildir
-------------- ---- ---- ----------------------- -------
root@localhost 5000 5000 /var/spool/mail/virtual root/
frank@frog.com 5000 5000 /var/spool/mail/virtual frank/

Last edited by frank09; 01-06-2009 at 11:11 AM. Reason: better formatting
 
Old 01-07-2009, 07:36 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
1) I imagine your sender restrictions, and

2) to check that your server is the destination.

You really need to post "postconf -n" when you have postfix problems btw.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can format the data from the queries in mysql? isamuede Linux - Server 1 08-01-2008 02:38 AM
Postfix/Dovecot - thunderbird queries server fine but finds no mail sneakyimp Linux - Server 1 10-24-2007 07:15 PM
how to view mysql cached queries Sachin.Verma Linux - Software 1 09-29-2007 06:43 AM
Printing incoming MySQL queries? spaaarky21 Linux - Software 2 05-03-2007 05:44 PM
More strange queries.. RoaCh Of DisCor Linux - Security 9 01-14-2007 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration