Quote:
Originally Posted by bathory
Squirrelmail depends on dovecot to retrieve mail. If your postfix-mysql-dovecot setup works, then squirrelmail should work too. Have you done any tests to see if you can get mail using an imap client like Thunderbid?
Anyway, according to this howto, that does the same setup as yours, you have to use
Code:
mail_location = maildir:/var/vmail/%d/%u
in dovecot.conf.
|
Thanks again for input. The how to you send was pertinent to a new version of dovecot, but configuration wise was very similar, just minor differences in the commands. I did massage the dovecot.conf and the dovecot-mysql.conf, but nothing I can still login into squirrelmail and send messages but can not read messages. In any event here is my configuration if anyone can see something obvious that I am might be overlooking.
main.cf
############## Postfix###############
smtpd_banner = $myhostname
biff = no
append_dot_mydomain = no
relayhost =
mynetworks = 127.0.0.0/8
inet_interfaces = all
mailbox_size_limit = 0
recipient_delimiter = +
alias_database = hash:/etc/postfix/aliases
alias_maps = $alias_database
myhostname = hermanos.hispanicguide.net
mydomain = hispanicguide.net
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain, $transport_maps
mail_spool_directory = /var/spool/mail
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
disable_vrfy_command = no
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
sample_directory = /usr/share/doc/postfix-2.2.10/samples
sendmail_path = /usr/sbin/sendmail.postfix
html_directory = no
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/libexec/postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 450
####################postfix section ends here############### mains Users and mailboxes###############
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_base = /vmail/vmail
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_limit =51200000
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_minimum_uid = 150
virtual_uid_maps = static:150
virtual_gid_maps = static:12
virtual_maildir_limit_message= Sorry, the user maildir is over quota, please try again later.
##############################Virtual section of main.cf ends##############
#################### SASL/TLS Authentication########################### ######SASL PART#########
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination######TLS PART###########
smtpd_tls_cert_file = /etc/ssl/hispanicguide/mailserver/smtpd.crt
smtpd_tls_key_file = /etc/ssl/hispanicguide/mailserver/smtpd.key
smtpd_tls_CAfile = /etc/ssl/hispanicguide/mailserver/cacert.pem
smtpd_tls_auth_only = no
smtpd_use_tls = yes
smtp_use_tls = yes
smtpd_tls_received_header = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
tls_random_source = dev:/dev/urandom
smtpd_tls_session_cache_timeout = 3600s
smtpd_tls_received_header = yes
###########################SASL/TLS Authentication ends here#############
dovecot.conf
base_dir = /var/run/dovecot/
protocols = imap pop3 imaps pop3s
imap_listen = [::]
pop3_listen = [::]
login_dir = /var/run/dovecot-login
login = imap
login = pop3
default_mail_env = maildir:/vmail/vmail/%d/%u
mbox_locks = fcntl
log_timestamp = "%Y-%m-%d %H:%M:%S "
log_path = /var/log/maillog
mail_extra_groups = mail
first_valid_uid = 150
last_valid_uid = 150
maildir_copy_with_hardlinks = yes
auth = mysql_auth
auth_userdb = mysql /etc/dovecot-mysql.conf
auth_passdb = mysql /etc/dovecot-mysql.conf
dovecot-mysql.conf
######dove-mysql.conf should look like this##########
db_host = 127.0.0.1
db_port = 3306
db = mail
db_user = user
db_passwd = XXXXXXXX
db_client_flags = 0
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT '/vmail/vmail/%d/%n' as home, 'maildir:/vmail/vmail/%d/%n' as mail, 150 AS uid, 12 AS gid, concat('dirsize:storage=',quota) AS quota FROM mailbox WHERE username ='%u' AND active ='1'