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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th August 2011, 15:21
tomaszm tomaszm is offline
Junior Member
 
Join Date: May 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default I can't receive email.

Hello,

I've centos 5.6 server with ispconfig 3. I don't see any email in webmail, but I've emails in /var/vmail/example.com/test/new also I can send emails. This is my main.cf
Quote:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
header_checks = regexp:/etc/postfix/header_checks
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 0
mime_header_checks = regexp:/etc/postfix/mime_header_checks
mydestination = webserver.webserver, localhost, localhost.localdomain
myhostname = webserver.webserver
mynetworks = 127.0.0.0/8 [::1]/128
myorigin = /etc/mailname
nested_header_checks = regexp:/etc/postfix/nested_header_checks
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 = +
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_security_level = may
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 = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_transport = maildrop
virtual_uid_maps = static:5000
My master.cf
Quote:
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
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_authenticate d,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_authenticate d,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
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}


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,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
Logs from maillog
Quote:
Aug 30 14:00:38 webserver amavis[28113]: (28113-03) Passed CLEAN, [209.85.210.44] [209.85.210.44] <xxx@gmail.com> -> <test@example.com>, Message-ID: <CABScP3uHcbDOm49F-aCJy6xLvErdrxXq1gTJNkdEDh-aaJA96Q@mail.gmail.com>, mail_id: eC4becst5I6s, Hits: -0.911, size: 5199, queued_as: 214251A688B0, 330 ms
Aug 30 12:00:38 webserver postfix/smtp[19550]: 32B671A688AD: to=<test@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.2, delays=0.82/0/0/0.33, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 214251A688B0)
Aug 30 14:00:38 webserver postfix/qmgr[18813]: 32B671A688AD: removed
Aug 30 14:00:38 webserver postfix/pipe[19604]: 214251A688B0: to=<test@example.com>, relay=maildrop, delay=0.04, delays=0.01/0.02/0/0.02, dsn=2.0.0, status=sent (delivered via maildrop service)
Aug 30 14:00:38 webserver postfix/qmgr[18813]: 214251A688B0: removed
Aug 30 12:01:08 webserver postfix/smtpd[19497]: disconnect from unknown[209.85.210.44]
I've mx records in dns. I get main.cf and master.cf config from my old server (debian with ispconfig 3, on this server emails works.).

P.S sorry for my english.

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 30th August 2011, 15:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

According to the mail.log and your description that the mails are in /var/vmail/example.com/test/new folder, mail delivery works fine. Please ensure that you logged in with the correct username to the webmail client, the username is the full email address. If you are laready logged in, press on the refresh link in the webmail client and ensure that you are viewing the inbox folder.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th August 2011, 15:38
tomaszm tomaszm is offline
Junior Member
 
Join Date: May 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I login on the user test@example.com I click "check mail" and inbox but I get massage "This folder is empty", so I don't know whats wrong. This looks like webmail can't get emails from files.
Reply With Quote
  #4  
Old 30th August 2011, 15:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

Please post the output of:

netstat -tap | grep imap
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 30th August 2011, 16:03
tomaszm tomaszm is offline
Junior Member
 
Join Date: May 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[root@webserver /]# netstat -tap | grep imap
Quote:
tcp 0 0 *:imaps *:* LISTEN 1873/dovecot
tcp 0 0 *:imap *:* LISTEN 1873/dovecot
tcp 0 0 *:imaps *:* LISTEN 1873/dovecot
tcp 0 0 *:imap *:* LISTEN 1873/dovecot
Reply With Quote
  #6  
Old 31st August 2011, 12:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Do you use SquirrelMail? Did you configure SquirrelMail in the beginning and tell it that you use Dovecot?
__________________
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
  #7  
Old 31st August 2011, 12:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

Quote:
Originally Posted by tomaszm View Post
[root@webserver /]# netstat -tap | grep imap
According to your config files, your server is configured to use courier as pop3 / imap server. But currently dovecot is started and not courier. Dovecot and courier use a different setup and directory structure for the mailboxes.

Please stop and disable dovecot and then start couriert pop3, imap and authdaemon.

Which tutorial did you use to install your server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 31st August 2011 at 12:34.
Reply With Quote
  #8  
Old 31st August 2011, 13:53
tomaszm tomaszm is offline
Junior Member
 
Join Date: May 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I install and configure courier. I've emails in my box but now I can't send emails.

I used this tutorial: http://www.howtoforge.com/perfect-se...64-ispconfig-3

But I moved server based on this tutorial: http://www.howtoforge.com/perfect-se...-ispconfig3-p4

maillog:
Quote:

Aug 31 12:46:18 webserver postfix/smtp[11279]: fatal: unknown service: smtp/tcp
Aug 31 12:46:19 webserver postfix/qmgr[31724]: warning: premature end-of-input on private/smtp socket while reading input attribute name
Aug 31 12:46:19 webserver postfix/qmgr[31724]: warning: private/smtp socket: malformed response
Aug 31 12:46:19 webserver postfix/qmgr[31724]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 31 12:46:19 webserver postfix/master[31722]: warning: process /usr/libexec/postfix/smtp pid 11279 exit status 1
Aug 31 12:46:19 webserver postfix/master[31722]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Aug 31 12:46:19 webserver postfix/qmgr[31724]: 784101A688A7: to=<xx@gmail.com>, relay=none, delay=1.1, delays=0.04/1/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
OK i fix that.
Just use /usr/sbin/postfix set-permissions

Last edited by tomaszm; 31st August 2011 at 14:25.
Reply With Quote
  #9  
Old 31st August 2011, 14:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

What have you changed in postfix config files? The delivery was working fine before, so there must have been changes in the main.cf or master.cf file.

By the way, it would have been better if you stayed with debian. Its much more stable and causes less problems. For example the problems in this thread could not have happed with debian as it detects when ypu try to install a duplicate pop3 / imap server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 31st August 2011, 15:37
tomaszm tomaszm is offline
Junior Member
 
Join Date: May 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I don't change anything, file premissions was wron.

I want to use thunderbird to get and send emails, but I can't connect to smtp sever. Do you know how to configure thunderbird or smtp to send emails?
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
people should receive notification when email created for him from ispconfig 3 qiubosu Installation/Configuration 1 22nd December 2010 15:38
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 04:39
Postfix won't receive external email fred!head Server Operation 2 29th June 2008 20:30
Unable to receive mail on ISPConfig configured email addresses. ahoivik Installation/Configuration 7 21st April 2008 23:56
Can't receive email for aliases sbecker Installation/Configuration 10 4th April 2006 17:51


All times are GMT +2. The time now is 05:06.


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