From owner-freebsd-questions@FreeBSD.ORG Sun Apr 2 09:23:46 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2BB316A41F for ; Sun, 2 Apr 2006 09:23:46 +0000 (UTC) (envelope-from vaaf@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 468CB43D46 for ; Sun, 2 Apr 2006 09:23:46 +0000 (GMT) (envelope-from vaaf@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IX300HWI8RLP270@osl1smout1.broadpark.no> for questions@freebsd.org; Sun, 02 Apr 2006 11:23:45 +0200 (CEST) Received: from urban.broadpark.no ([213.187.181.70]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IX300DWW8RKDEK6@osl1sminn1.broadpark.no> for questions@freebsd.org; Sun, 02 Apr 2006 11:23:45 +0200 (CEST) Date: Sun, 02 Apr 2006 11:23:54 +0200 From: Vaaf To: questions@freebsd.org Message-id: <7.0.1.0.2.20060402111945.00e60f50@broadpark.no> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT Cc: Subject: Postfix: unable to deliver this message after 4 days X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 09:23:46 -0000 Hello! I would appreciate help from kind people. In return I can design beautiful things for you :) Anyway ... Trying to make an addition to my existing setup on myrealdomain.com, specifically for virtual domains, in this case lalaladomain.com. Existing setup works. Virtual setup doesn't. The virtual domain's MX record has been pointed to myrealdomain.com's IP. FreeBSD 6.0-STABLE + postfix-2.1.6,1 + mysql-5.0.16 I can telnet localhost 25, no problems there. When I try to send e-mails to info@lalaladomain.com, I get: Reason: unable to deliver this message after 4 days TCP active open: Failed connect() Error: Connection timed out Even though syslog is set to do maillogs, they're all empty! Apr 2 00:00:01 lala newsyslog[43111]: logfile turned over # ls -l /var/log/maillog* # -rw-r----- 1 root wheel 60 Apr 2 00:00 maillog -rw-r----- 1 root wheel 120 Apr 2 00:00 maillog.0 -rw-r----- 1 root wheel 120 Apr 2 00:00 maillog.1 -rw-r----- 1 root wheel 120 Apr 1 00:00 maillog.2 -rw-r----- 1 root wheel 119 Apr 1 00:00 maillog.3 -rw-r----- 1 root wheel 118 Mar 31 00:00 maillog.4 -rw-r----- 1 root wheel 119 Mar 31 00:00 maillog.5 -rw-r----- 1 root wheel 120 Mar 30 00:00 maillog.6 -rw-r----- 1 root wheel 120 Mar 30 00:00 maillog.7 # /etc/pf.conf # pass in on $ext_if inet proto tcp from any to ($ext_if) port { 21, 22, 25, 80, 110, 113, 143 } flags S/SA keep state # /usr/local/etc/postfix/main.cf # mail_owner = postfix home_mailbox = .maildir/ queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix mailbox_command = /usr/local/bin/procmail mydomain = myrealdomain.com myhostname = fosho.myrealdomain.com mynetworks = 213.21.123.0/24, 127.0.0.0/8 myorigin = $mydomain mydestination = $mydomain, localhost.$mydomain, $myhostname debug_peer_level = 2 debugger_command = PATH=/usr/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = no html_directory = no virtual_transport = virtual virtual_uid_maps = static:125 virtual_gid_maps = static:125 virtual_mailbox_base = /var/spool/virtual virtual_mailbox_domains = mysql:/usr/local/etc/postfix/v_domain.cf virtual_mailbox_maps = mysql:/usr/local/etc/postfix/v_mailbox.cf virtual_alias_maps = mysql:/usr/local/etc/postfix/v_alias.cf broken_sasl_auth_clients = yes smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_security_options = noanonymous smtpd_sasl_application_name = smtpd smtp_use_tls = yes smtpd_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_key_file = /usr/local/etc/postfix/ssl/smtpd.pem smtpd_tls_cert_file = /usr/local/etc/postfix/ssl/smtpd.pem smtpd_tls_CAfile = /usr/local/etc/postfix/ssl/smtpd.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 450 # /usr/local/etc/postfix/v_alias.cf # user = postfix password = lalalas_password dbname = mail table = alias select_field = goto where_field = address # /etc/rc.conf # sendmail_enable="YES" sendmail_flags="-bd" sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" # MySQL # CREATE DATABASE IF NOT EXISTS mail; GRANT ALL ON mail.* TO mail@localhost IDENTIFIED BY 'lalalas_password'; USE mail; CREATE TABLE IF NOT EXISTS alias ( address varchar(255) NOT NULL default '', goto text NOT NULL, domain varchar(255) NOT NULL default '', created datetime NOT NULL default '0000-00-00 00:00:00', modified datetime NOT NULL default '0000-00-00 00:00:00', active tinyint(1) NOT NULL default '1', PRIMARY KEY (address), KEY address (address) ) TYPE=MyISAM COMMENT='Aliases'; USE mail; CREATE TABLE IF NOT EXISTS domain ( domain varchar(255) NOT NULL default '', description varchar(255) NOT NULL default '', aliases int(10) NOT NULL default '0', mailboxes int(10) NOT NULL default '0', maxquota int(10) NOT NULL default '0', transport varchar(255) default NULL, backupmx tinyint(1) NOT NULL default '0', created datetime NOT NULL default '0000-00-00 00:00:00', modified datetime NOT NULL default '0000-00-00 00:00:00', active tinyint(1) NOT NULL default '1', PRIMARY KEY (domain), KEY domain (domain) ) TYPE=MyISAM COMMENT='Domains'; USE mail; CREATE TABLE IF NOT EXISTS mailbox ( username varchar(255) NOT NULL default '', password varchar(255) NOT NULL default '', name varchar(255) NOT NULL default '', maildir varchar(255) NOT NULL default '', quota int(10) NOT NULL default '0', domain varchar(255) NOT NULL default '', created datetime NOT NULL default '0000-00-00 00:00:00', modified datetime NOT NULL default '0000-00-00 00:00:00', active tinyint(1) NOT NULL default '1', PRIMARY KEY (username), KEY username (username) ) TYPE=MyISAM COMMENT='Mailboxes'; USE mail; INSERT INTO domain (domain) VALUES ('lalaladomain.com'); INSERT INTO alias (address, goto) VALUES ('info@lalaladomain.com', 'lalala@gmail.com');