HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Debian Squeeze virtual user postfix setup with courier / spamassassin /... (http://www.howtoforge.com/forums/showthread.php?t=54509)

MiniMe 12th October 2011 20:57

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 !

MiniMe 12th October 2011 21:46

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 ...

falko 13th October 2011 12:56

Can you post your main.cf and your master.cf?

MiniMe 13th October 2011 15:32

Quote:

Originally Posted by falko (Post 265334)
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 ?

falko 14th October 2011 16:12

Hm, looks ok. What's the output of
Code:

postqueue -p
?

MiniMe 15th October 2011 19:22

Quote:

Originally Posted by falko (Post 265410)
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.


falko 16th October 2011 12:01

According to http://www.zimbra.com/forums/adminis...tu-8-04-a.html this could be related to name resolution. Do you have valid nameservers in /etc/resolv.conf?

MiniMe 16th October 2011 13:14

Quote:

Originally Posted by falko (Post 265463)
According to http://www.zimbra.com/forums/adminis...tu-8-04-a.html this could be related to name resolution. Do you have valid nameservers in /etc/resolv.conf?

Dear falko,

i have found that post as well and its big bullshit :)
I have a Hetzner machine and therefor, my resolv.conf has hetzner's NS ip's listed.

So yes, i am 400% sure that the servers listed there are valid ;) since resolving is working just fine :)

I personally think it has something to do with amavis, since one of the logs said "cannot find file specified " ...

falko 17th October 2011 11:15

I'm running out of ideas... :(

MiniMe 17th October 2011 12:04

Quote:

Originally Posted by falko (Post 265490)
I'm running out of ideas... :(

Nooooo !

i really need your help on this one since im about too lose my old Hetzner server :(

Is there really nothing else you can think off ? :(


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

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