Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th October 2011, 21:57
MiniMe MiniMe is offline
Senior Member
 
Join Date: Oct 2008
Posts: 104
Thanks: 4
Thanked 5 Times in 4 Posts
Default Debian Squeeze virtual user postfix setup with courier / spamassassin /...

I have followed the above install guide on a new Debian Squeeze machine and i am having difficulties getting to actually work.

I followed the guide completely without the last step ( squirrelmail ).

Problem : when i do a telnet to mail.xxxx.eu 110 ( POP3 ) login as user@xxxx.eu
with my password ( entered in the DB with the encrypt SQL command ) i get the following error :

-ERR chdir xxxxx.eu/user/ failed

and then the connection gets automatically dropped.

Second of all, i have sent 6 test emails and the /home/vmail folder seems empty ...

Can someone assist on what the problem could be ?

Thanks !
__________________
Debian Squeeze 6.0.3 - 16GB RAM - Intel i7-2600 Quad Core HT @ 3.4Ghz - RAID 1 2800 GB
Evil-Hannie's Dedicated Server - Aphrodite-Artemis
http://www.evil-hannie.eu
Reply With Quote
Sponsored Links
  #2  
Old 12th October 2011, 22:46
MiniMe MiniMe is offline
Senior Member
 
Join Date: Oct 2008
Posts: 104
Thanks: 4
Thanked 5 Times in 4 Posts
Default

UPDATE :

in the mail log was following error / warning :

Code:
dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting
Now i was able to fix this error with adding localhost to inet_addresses in /etc/postfix/main.cf

but now i still dont receive email with following message :

Code:
Oct 12 21:42:48 Aphrodite-Artemis postfix/smtp[3215]: 8107F86A2A04: to=<han@evil-hannie.eu>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.2/0/0/1.9, dsn=2.0.0, status=sent (250 2.$
Oct 12 21:42:48 Aphrodite-Artemis postfix/qmgr[3102]: 8107F86A2A04: removed
Oct 12 21:42:48 Aphrodite-Artemis postfix/error[3218]: 8239386A2A08: to=<han@evil-hannie.eu>, relay=none, delay=0.15, delays=0.08/0/0/0.07, dsn=4.3.0, status=deferred (mail transport unavaible)
Also ; this appears in the mail logs and in the syslog file :

Code:
 postfix/qmgr[3939]: warning: connect to transport private/10485760: No such file or directory
And yes, AMAVISD and such is running ...
__________________
Debian Squeeze 6.0.3 - 16GB RAM - Intel i7-2600 Quad Core HT @ 3.4Ghz - RAID 1 2800 GB
Evil-Hannie's Dedicated Server - Aphrodite-Artemis
http://www.evil-hannie.eu

Last edited by MiniMe; 13th October 2011 at 00:27. Reason: Update
Reply With Quote
  #3  
Old 13th October 2011, 13:56
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

Can you post your main.cf and your master.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
  #4  
Old 13th October 2011, 16:32
MiniMe MiniMe is offline
Senior Member
 
Join Date: Oct 2008
Posts: 104
Thanks: 4
Thanked 5 Times in 4 Posts
Exclamation

Quote:
Originally Posted by falko View Post
Can you post your main.cf and your master.cf?
Certainly , here is main.cf :
Code:
# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

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

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = mail.evil-hannie.eu
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.evil-hannie.eu, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 176.9.42.90 localhost
html_directory = /usr/share/doc/postfix/html
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_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_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_reci$
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
And here is master.cf

Code:
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
.. /* SOME OTHER DEFAULT STUFF */
amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1
Any idea what could be wrong ?
__________________
Debian Squeeze 6.0.3 - 16GB RAM - Intel i7-2600 Quad Core HT @ 3.4Ghz - RAID 1 2800 GB
Evil-Hannie's Dedicated Server - Aphrodite-Artemis
http://www.evil-hannie.eu
Reply With Quote
  #5  
Old 14th October 2011, 17:12
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

Hm, looks ok. What's the output of
Code:
postqueue -p
?
__________________
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
  #6  
Old 15th October 2011, 20:22
MiniMe MiniMe is offline
Senior Member
 
Join Date: Oct 2008
Posts: 104
Thanks: 4
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by falko View Post
Hm, looks ok. What's the output of
Code:
postqueue -p
?
hi falko , the output is the following :

Code:
root@Aphrodite-Artemis ~ # postqueue -p
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
A482D86A2A18      948 Wed Oct 12 21:31:46  root@mail2.evil-hannie.eu
                                                  (mail transport unavailable)
                                         han@evil-hannie.eu

BEFBD86A29C5      944 Tue Oct 11 21:53:30  root@mail2.evil-hannie.eu
                                                  (mail transport unavailable)
                                         han@evil-hannie.eu

8239386A2A08     1867 Wed Oct 12 21:42:48  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         han@evil-hannie.eu

87EFB86A2A1A      952 Wed Oct 12 21:31:48  root@mail2.evil-hannie.eu
                                                  (mail transport unavailable)
                                         root@evil-hannie.eu

760C786A29F1     2098 Wed Oct 12 22:31:46  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         abuse@evil-hannie.eu

1955586A2A05     1872 Wed Oct 12 21:56:46  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         han@evil-hannie.eu

2DAE086A29EF     2092 Wed Oct 12 22:31:46  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         han@evil-hannie.eu

0532786A29EC     1880 Wed Oct 12 21:56:48  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         root@evil-hannie.eu

5E33E86A2A1B     1872 Wed Oct 12 21:32:23  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         han@evil-hannie.eu

51FC486A056B      909 Wed Oct 12 23:19:30  root@mail2.evil-hannie.eu
                                                  (mail transport unavailable)
                                         han@evil-hannie.eu
66C9486A29C8      904 Tue Oct 11 21:52:46  root@mail2.evil-hannie.eu
                                                  (mail transport unavailable)
                                         han@evil-hannie.eu

39C3286A29AE     1886 Wed Oct 12 21:56:48  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         abuse@evil-hannie.eu

F0F0D86A29EB     2095 Wed Oct 12 22:31:45  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         root@evil-hannie.eu

F12B986A2A20     1878 Wed Oct 12 21:32:33  han.flamez@telenet.be
                                                  (mail transport unavailable)
                                         root@evil-hannie.eu

-- 30 Kbytes in 14 Requests.
__________________
Debian Squeeze 6.0.3 - 16GB RAM - Intel i7-2600 Quad Core HT @ 3.4Ghz - RAID 1 2800 GB
Evil-Hannie's Dedicated Server - Aphrodite-Artemis
http://www.evil-hannie.eu
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 Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 13:51
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 10:58
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 14:31
postfix problem jagsler Server Operation 41 7th July 2011 15:19
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 21:43


All times are GMT +2. The time now is 14:45.


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