Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-04-2008, 10:35 AM   #31
LQ Newbie
Registered: Sep 2005
Posts: 23

Original Poster
Rep: Reputation: 15

I think I could resolve that problem as well making my destination quering the mysql_virtual_domains file and I see the mail delivered right now; on the other hand the next problem is that I don't see the virtual mail box created at /home/vmail. Vmail is a localuser created to gather the virtual mail.
Old 07-04-2008, 12:35 PM   #32
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I can't help if you don't provide what I've asked for:

postconf -n
contents of

The bottom line is that postfix does not consider itself responsible for the recipient address. Therefore, one of your local, virtual alias domains, virtual mailbox domains, or relay domains is not configured correctly.

The following are empty:

virtual_alias_maps =
virtual_mailbox_maps =

So, we can see that the recipient address can't possibly match anything in either virtual_mailbox_maps, nor virtual_alias_maps, so you're left with local and relay domains.
Old 07-04-2008, 06:22 PM   #33
LQ Newbie
Registered: Sep 2005
Posts: 23

Original Poster
Rep: Reputation: 15
my postconf -n is on page two... it has all dettails
Old 07-04-2008, 06:34 PM   #34
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
No, that is the output of postconf, not postconf -n. The -n option ONLY shows changes from defaults, not the entire thing. The long list is a) too voluminous, and b) does not show how default values have been changed.
Old 07-04-2008, 06:41 PM   #35
LQ Newbie
Registered: Sep 2005
Posts: 23

Original Poster
Rep: Reputation: 15
ok... here it comes

[root@localdomain]# /usr/sbin/postconf

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Mailbox
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain,
mydomain = domain.tld
myhostname = mail.domain.tld
mynetworks =,
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
relay_recipient_maps = mysql:/etc/postfix/
sample_directory = /usr/share/doc/postfix-2.2.10/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
soft_bounce = no
unknown_local_recipient_reject_code = 450
virtual_alias_domains = mysql:/etc/postfix/
virtual_alias_expansion_limit = 1000
virtual_alias_maps = mysql:/etc/postfix/
virtual_alias_recursion_limit = 1000
virtual_destination_concurrency_limit = $default_destination_concurrency_limit
virtual_destination_recipient_limit = $default_destination_recipient_limit
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/
virtual_mailbox_limit = 51200000
virtual_mailbox_lock = fcntl
virtual_mailbox_maps = mysql:/etc/postfix/
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000

It seems to me that those two fields have the values

Last edited by asmweb; 07-05-2008 at 03:50 AM.
Old 07-05-2008, 03:52 AM   #36
LQ Newbie
Registered: Sep 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Well maybe I was making some wrong assignment because now it seems to work... I just changed the lines

virtual_alias_domains = $virtual_alias_maps
virtual_alias_maps = $virtual_maps
virtual_maps = mysql:/etc/postfix/

right now I'm having problems with dovecot

here is part of the log

dovecot-auth: Jul 05 17:12:28 Fatal: You'll need to add at least one userdb
dovecot: Jul 05 17:12:28 Error: Auth process died too early - shutting down
dovecot: Jul 05 17:12:28 Error: child 9520 (auth) returned error 89

auth = default
auth_user = root
auth_mechanisms = plain digest-md5
auth_executable = /usr/local/libexec/dovecot/dovecot-auth
auth_userdb = mysql /etc/dovecot-mysql.conf
auth_passdb = mysql /etc/dovecot-mysql.conf
auth_count = 1
mail_extra_groups = mail
#mail_debug = yes

db_host =
db_port = 3306
db = postfix
db_user = postfix
db_passwd = postfix
db_client_flags = 0
db_unix_socket = /tmp/mysql.sock
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, 97 AS uid, 97 AS gid FROM mailbox WHERE username = '%u'

Last edited by asmweb; 07-05-2008 at 10:26 AM.
Old 07-05-2008, 12:28 PM   #37
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I don't use dovecot, so can't help with this. Perhaps move your last thread here to a new thread, with a Dovecot-related subject (others may not find your question in this postfix connection refused thread). Just a thought.
Old 07-07-2008, 02:28 PM   #38
Registered: May 2004
Distribution: MANDRIVA / CENTOS
Posts: 146

Rep: Reputation: 15

I have a server with multi domains (3), I can send mail with the first domain that I configurated but I am having problem with the others. The thing is that I am using a PHP application to ask to the visitor some information and send it to my gmail, the application is working fine but just with the first domain, and I am not reciving with the others 2 doamin, I am thinking that I need to setup the postfix with virtual domain, but I am not sure, can you help me?

3 Domain
Dynamic IP
Linux,Mysql,PHP,Apache, Postfix 2.x

Thank you,
Old 07-07-2008, 02:36 PM   #39
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
alejandroye, Please open a new thread, so as not to take over this user's thread.

Post output from :

postconf -n and any relevant log lines pertaining to a given mail transaction.

If you want to send me a PM to indicate the new thread URL, that's fine, I'll follow-up there.


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
Suse 10.3- Postfix - Connection refused jono_tt Linux - Newbie 1 06-24-2008 06:36 PM
connection refused for postfix - cant download mail thandika Linux - Server 2 10-02-2007 07:05 AM
Postfix: appending to outbound mail conditionally jgombos Linux - Server 0 03-23-2007 08:45 PM
POSTFIX holding mail in qeue, won't deliver, connection refused bentman78 Linux - Software 2 10-27-2004 07:11 AM
Connection Refused - Postfix seanfitz Linux - Networking 1 01-07-2004 02:34 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:59 AM.

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