Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st February 2006, 13:45
ebbay ebbay is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs

Hi All,

Thanks to falco
First thanks to all for the great how to and website.

I have installed a mailserver according to the Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) HOW-TO.


I have 2 domains.

Local domain : nic.ga
virtual domain : ossy-network.ga

I sent mail to these two emails
gbouraga@nic.ga
ceo@ossy-network.ga

mail:# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK Hello there.
user gbouraga@nic.ga
+OK Password required.
pass ###
-ERR Maildir: No such file or directory
Connection closed by foreign host

mail:# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK Hello there.
user ceo@ossy-network.ga
+OK Password required.
pass ####
-ERR Maildir: No such file or directory
Connection closed by foreign host


In /var/log/mail.log
------------------
Feb 20 21:28:36 mail amavis[2390]: (02390-09) PRESERVING EVIDENCE in /var/lib/amavis/amavis-20060220T212836-02390
Feb 20 21:28:36 mail postfix/smtp[2508]: C2C1A624035: to=<gbouraga@nic.ga>, relay=127.0.0.1[127.0.0.1], delay=7820, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02390-09, creating_partsdir FAILED: DBD::mysql::st execute failed: Table 'mail.policy' doesn't exist at (eval 38) line 238, <GEN25> line 8. (in reply to end of DATA command))

In /var/log/mail.err
------------------
Feb 20 19:37:54 mail courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]

AND
------------------
mail:# find /home/vmail/
/home/vmail/
/home/vmail/.bashrc
/home/vmail/.bash_profile
mail:#

need help.

ebbay
Reply With Quote
Sponsored Links
  #2  
Old 21st February 2006, 17:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Quote:
Originally Posted by ebbay
In /var/log/mail.log
------------------
Feb 20 21:28:36 mail amavis[2390]: (02390-09) PRESERVING EVIDENCE in /var/lib/amavis/amavis-20060220T212836-02390
Feb 20 21:28:36 mail postfix/smtp[2508]: C2C1A624035: to=<gbouraga@nic.ga>, relay=127.0.0.1[127.0.0.1], delay=7820, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02390-09, creating_partsdir FAILED: DBD::mysql::st execute failed: Table 'mail.policy' doesn't exist at (eval 38) line 238, <GEN25> line 8. (in reply to end of DATA command))
I don't use a table "policy" in my tutorial so I guess you've changed it a bit? Please compare your configuration files with those from the tutorial.
__________________
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 27th February 2006, 15:45
ebbay ebbay is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I took to the configuration at the beginning
I again sending well the méssages but I do not receive the mails.
I am not also able to be even sent a message to myself.

in /var/log/mail.log
Feb 27 15:30:22 mail postfix/cleanup[3285]: 6B74930806F: message-id=<20060227143022.6B74930806F@mail.nic.ga>
Feb 27 15:30:22 mail postfix/qmgr[3264]: 6B74930806F: from=<>, size=3097, nrcpt=1 (queue active)
Feb 27 15:30:22 mail postfix/qmgr[3264]: 37D3330806E: removed
Feb 27 15:30:22 mail postfix/smtp[3286]: 6B74930806F: to=<gbouraga@nic.ga>, relay=none, delay=0, status=bounced (mail for 217.77.77.26 loops back to myself)
Feb 27 15:30:22 mail postfix/qmgr[3264]: 6B74930806F: removed
Reply With Quote
  #4  
Old 27th February 2006, 22:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

That's the problem:
Quote:
Originally Posted by ebbay
Feb 27 15:30:22 mail postfix/smtp[3286]: 6B74930806F: to=<gbouraga@nic.ga>, relay=none, delay=0, status=bounced (mail for 217.77.77.26 loops back to myself)
Please post the output of
Code:
hostname
,
Code:
hostname -f
, and the content of /etc/hosts and /etc/postfix/main.cf.
__________________
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 28th February 2006, 13:07
ebbay ebbay is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

bouraga@mail:~$ hostname
mail.nic.ga
bouraga@mail:~$ hostname -f
mail.nic.ga
bouraga@mail:~$

/etc/hosts
bouraga@mail:~$ more /etc/hosts
127.0.0.1 localhost.localdomain localhost mail
217.77.77.26 mail.nic.ga mail

# 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

/etc/postfix/main.cf
bouraga@mail:~$ more /etc/postfix/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.nic.ga
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.nic.ga, 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, proxy: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
Reply With Quote
  #6  
Old 28th February 2006, 18:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

I don't know why Postfix writes
Quote:
mail for 217.77.77.26 loops back to myself
instead of
Quote:
mail for mail.nic.ga loops back to myself
, but anyway...
Please add 217.77.77.26 to the mydestination line in /etc/postfix/main.cf:

Code:
mydestination = mail.nic.ga, localhost, localhost.localdomain, 217.77.77.26
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
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
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ruskicar HOWTO-Related Questions 26 20th July 2007 16:28
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs Rocky Installation/Configuration 24 9th February 2006 11:08
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs amilcar HOWTO-Related Questions 1 1st January 2006 17:12
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54


All times are GMT +2. The time now is 07:34.


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