Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 17th March 2011, 15:26
knology knology is offline
Junior Member
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Debian Sqeeuze virtual users and domains with postfix... Postfix problem.


I've just followed this tutorial:


hostname -f:

I've send a welcome mail to these 2 users to create a mailbox, but i won't work for domain1.nl

ls /var/vmail:
Send a testmail:

root@neptune:/home/bknol# mailx bknol@domain1.nl
Subject: Test
cat /var/mail/bknol
From MAILER-DAEMON  Thu Mar 17 14:16:31 2011
Return-Path: <>
X-Original-To: root@neptune.domain1.nl
Delivered-To: root@neptune.domain1.nl
Received: by neptune.domain1.nl (Postfix)
	id 450A4CE1CA; Thu, 17 Mar 2011 14:16:31 +0100 (CET)
Date: Thu, 17 Mar 2011 14:16:31 +0100 (CET)
From: MAILER-DAEMON@neptune.domain1.nl (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: root@neptune.domain1.nl
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
Content-Transfer-Encoding: 7bit
Message-Id: <20110317131631.450A4CE1CA@neptune.domain1.nl>

This is a MIME-encapsulated message.

Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host neptune.domain1.nl.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<bknol@domain1.nl>: mail for smtp.domain2.nl loops back to myself

Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; neptune.domain1.nl
X-Postfix-Queue-ID: 2136BCE14F
X-Postfix-Sender: rfc822; root@neptune.domain1.nl
Arrival-Date: Thu, 17 Mar 2011 14:16:31 +0100 (CET)

Final-Recipient: rfc822; bknol@domain1.nl
Original-Recipient: rfc822;bknol@domain1.nl
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for smtp.domain2.nl loops back to myself

Content-Description: Undelivered Message
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit

Return-Path: <root@neptune.domain1.nl>
Received: from localhost (localhost.localdomain [])
	by neptune.domain1.nl (Postfix) with ESMTP id 2136BCE14F
	for <bknol@domain1.nl>; Thu, 17 Mar 2011 14:16:31 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at neptune.domain1.nl
Received: from neptune.domain1.nl ([])
	by localhost (neptune.domain1.nl []) (amavisd-new, port 10024)
	with ESMTP id Nbgidj12BOkm for <bknol@domain1.nl>;
	Thu, 17 Mar 2011 14:16:28 +0100 (CET)
Received: by neptune.domain1.nl (Postfix, from userid 0)
	id B60D4CE1C9; Thu, 17 Mar 2011 14:16:28 +0100 (CET)
To: bknol@domain1.nl
Subject: Test
Message-Id: <20110317131628.B60D4CE1C9@neptune.domain1.nl>
Date: Thu, 17 Mar 2011 14:16:28 +0100 (CET)
From: root@neptune.domain1.nl (root)


I think this is the problem:
mail for smtp.domain2.nl loops back to myself

In my main.cf from postfix i have the following.
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[]:10024
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = neptune.domain1.nl, localhost, localhost.localdomain
myhostname = neptune.domain1.nl
mynetworks =
myorigin = /etc/mailname
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
readme_directory = /usr/share/doc/postfix
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost = smtp.upcmail.nl
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_uid_maps = static:5000
so that was a lot of information. By the way, bknol@domain2.nl works good (sending and receiving). Can anyone help me with this problem??

Bart Knol
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 23:58
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 07:37
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 15:49
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39

All times are GMT +2. The time now is 00:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.