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.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th March 2007, 10:49
spr0 spr0 is offline
Junior Member
 
Join Date: Jun 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Postfix

hi to all,

im trying used this howto Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) with by FALKO ,everything is ok but onething i noticed in my maillog is that

Mar 6 16:46:08 support postfix/qmgr[1281]: 89B02E14B0: removed
Mar 6 16:46:08 support postfix/smtp[1456]: C01EFE14AF: to=<postmaster@example.com>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
Mar 6 16:46:08 support postfix/qmgr[1281]: C01EFE14AF: removed

what the proble please help.

PS:this howto is great
Reply With Quote
Sponsored Links
  #2  
Old 7th March 2007, 19:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Please add mail.example.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 11th March 2007, 03:05
spr0 spr0 is offline
Junior Member
 
Join Date: Jun 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi sir falko thank for quickly reply

here's my config in my main.cf,can review/check if theres a something wrong or miss

vi /etc/postfic/main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = mail.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.example.com, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
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
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings


still got the error

Mar 11 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: from=<>, size=3535, nrcpt=1 (queue active)
Mar 11 08:55:37 support postfix/smtp[1464]: 330FFE14AF: to=<postmaster@example.com>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
Mar 11 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: removed

pls help.
thank you very much

mark
Reply With Quote
  #4  
Old 12th March 2007, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Looks ok. Did you restart Postfix?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th March 2007, 07:07
spr0 spr0 is offline
Junior Member
 
Join Date: Jun 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi sir falko thank you for your reply

i already restart Postfix and my server still got the error

Mar 13 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: from=<>, size=3535, nrcpt=1 (queue active)
Mar 13 08:55:37 support postfix/smtp[1464]: 330FFE14AF: to=<postmaster@example.com>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
Mar 13 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: removed

what should be the problem huhuhuhuh pls.pls. help

thank you

mark
Reply With Quote
  #6  
Old 13th March 2007, 17:53
nnunez nnunez is offline
Junior Member
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

same problem...

http://www.howtoforge.com/virtual_po..._quota_courier

Virtual Users And Domains With Postfix, Courier And MySQL + SMTP-AUTH + Quota.... only

webmail:/etc/postfix# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
172.16.10.44 webmail.aiep.cl webmail

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
webmail:/etc/postfix# cat /var/spool/postfix/etc/
hosts localtime nsswitch.conf resolv.conf services
webmail:/etc/postfix# cat /var/spool/postfix/etc/hosts
127.0.0.1 localhost.localdomain localhost
172.16.10.44 webmail.aiep.cl webmail

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
webmail:/etc/postfix#
webmail:/etc/postfix# cat /etc/hostname
webmail
webmail:/etc/postfix# cat main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = webmail
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = webmail.aiep.cl, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,reject_unauth_destinatio n
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
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

webmail:/etc/postfix# mail pepito@aiep.cl
Subject: test
test
.
Cc:
webmail:/etc/postfix# tail -f /var/log/mail.log
Mar 13 11:23:27 webmail postfix/qmgr[17534]: 86E13370028: removed
Mar 13 11:48:33 webmail postfix/pickup[17533]: B0FD7370027: uid=0 from=<root>
Mar 13 11:48:33 webmail postfix/cleanup[17574]: B0FD7370027: message-id=<20070313154833.B0FD7370027@webmail>
Mar 13 11:48:33 webmail postfix/qmgr[17534]: B0FD7370027: from=<root@webmail.aiep.cl>, size=276, nrcpt=1 (queue active)
Mar 13 11:48:35 webmail postfix/smtp[17581]: B0FD7370027: to=<pepito@aiep.cl>, relay=none, delay=2, status=bounced (mail for webmail.aiep.cl loops back to myself)
Mar 13 11:48:35 webmail postfix/cleanup[17574]: D694C370028: message-id=<20070313154835.D694C370028@webmail>
Mar 13 11:48:35 webmail postfix/qmgr[17534]: D694C370028: from=<>, size=1876, nrcpt=1 (queue active)
Mar 13 11:48:35 webmail postfix/qmgr[17534]: B0FD7370027: removed
Mar 13 11:48:35 webmail postfix/local[17583]: D694C370028: to=<nnunez@webmail.aiep.cl>, orig_to=<root@webmail.aiep.cl>, relay=local, delay=0, status=sent (delivered to command: procmail -a "$EXTENSION")
Mar 13 11:48:35 webmail postfix/qmgr[17534]: D694C370028: removed

webmail:/etc/postfix#
webmail:/etc/postfix# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 181 to server version: 4.0.24_Debian-10sarge2-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use mail;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SELECT * FROM `domains` LIMIT 0 , 30;
+---------+
| domain |
+---------+
| aiep.cl |
+---------+
1 row in set (0.00 sec)

mysql> SELECT * FROM `forwardings` LIMIT 0 , 30;
+--------------+----------------+
| source | destination |
+--------------+----------------+
| pepo@aiep.cl | pepito@aiep.cl |
+--------------+----------------+
1 row in set (0.00 sec)

mysql> SELECT * FROM `transport` LIMIT 0 , 30;
+---------+----------------------+
| domain | transport |
+---------+----------------------+
| aiep.cl | smtp:webmail.aiep.cl |
+---------+----------------------+
1 row in set (0.00 sec)

mysql> SELECT * FROM `users` LIMIT 0 , 30;
+----------------+---------------+----------+
| email | password | quota |
+----------------+---------------+----------+
| pepito@aiep.cl | mPPp2tuNoqld6 | 10485760 |
+----------------+---------------+----------+
1 row in set (0.00 sec)

mysql> quit;
Bye
webmail:/etc/postfix#
webmail:/etc/postfix# cat mysql-virtual_domains.cf
user = mail_admin
password = casitoss
dbname = mail
table = domains
select_field = 'virtual'
where_field = domain
hosts = 127.0.0.1
webmail:/etc/postfix#

Last edited by nnunez; 13th March 2007 at 19:11.
Reply With Quote
  #7  
Old 14th March 2007, 22:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by spr0
hi sir falko thank you for your reply

i already restart Postfix and my server still got the error

Mar 13 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: from=<>, size=3535, nrcpt=1 (queue active)
Mar 13 08:55:37 support postfix/smtp[1464]: 330FFE14AF: to=<postmaster@example.com>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
Mar 13 08:55:37 support postfix/qmgr[1280]: 330FFE14AF: removed

what should be the problem huhuhuhuh pls.pls. help

thank you

mark
Ok, then remove mail.example.com from the mydestination line in your main.cf and add it to the domains table. Then restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 15th March 2007, 04:02
spr0 spr0 is offline
Junior Member
 
Join Date: Jun 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi sir falko thank you again for your reply and patience ,i remove in the mydestionation and add to domains tables still got the error huihuhuhuh,please help me.


Mar 15 09:55:37 support postfix/qmgr[1280]: 330FFE14AF: from=<>, size=3535, nrcpt=1 (queue active)
Mar 15 09:55:37 support postfix/smtp[1464]: 330FFE14AF: to=<postmaster@example.com>, relay=none, delay=0, status=bounced (mail for mail.example.com loops back to myself)
Mar 15 09:55:37 support postfix/qmgr[1280]: 330FFE14AF: removed

please help

-mark-
Reply With Quote
  #9  
Old 15th March 2007, 16:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What's in your domains table now, and what in the mydestination line?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 16th March 2007, 04:01
spr0 spr0 is offline
Junior Member
 
Join Date: Jun 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

hi sir falko,thank you for you reply again

here's my domains table

+-------------+
| domain |
+-------------+
| mail.example.com |
+-------------+
1 row in set (0.02 sec)

and mydestination content

mydestination = localhost, localhost.localdomain

what do you think sir falko the problem?

please help meh sir

thank you in advance

-mark-
Reply With Quote
Reply

Bookmarks

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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36
PostFix problem! SevenSniff General 2 14th October 2006 15:44
Perfect Setup - Fedora Core 4 - postfix problem Median Installation/Configuration 7 2nd February 2006 13:21


All times are GMT +2. The time now is 18:31.


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