Postfix with Cyrus Imap

Karol Pomaski kpomaski at mexnetwork.com
Sat Jan 25 11:21:04 EST 2014


  Hey,

Yes we use SASL Auth, but I cannot authenticate to Cyrus Imap with my 
user from DB.

my main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete 
version


# 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
mail_name = MTA server
smtpd_banner = $myhostname ESMTP $mail_name
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/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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 = test.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = test.com, ip-10-0-3-47.ec2.internal, 
localhost.ec2.internal, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_delay_reject = yes
smtpd_helo_required = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
smtp_host_lookup = native,dns

mailbox_size_limit = 0
message_size_limit = 26214400
recipient_delimiter = +
mailbox_transport = cyrus

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

smtpd_sender_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit
smtpd_recipient_restrictions =
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client whois.rfc-ignorant.org,
reject_rbl_client ix.dnsbl.manitu.org,
reject_rbl_client multihop.dsbl.org,
reject_rbl_client dnsbl.ahbl.org,
reject_rbl_client rhsbl.ahbl.org,
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
permit
#


Postfix use correctly the DB, but Cyrus Imap not. As you haven't 
answered my question, is it possible to add acount to MySQL DB and than 
mailbox will be created autmatically (without using cyradm)?


Thanks!

Karol










------ Original Message ------
From: "Dan White" <dwhite at olp.net>
To: "Karol Pomaski" <kpomaski at mexnetwork.com>
Cc: info-cyrus at lists.andrew.cmu.edu
Sent: 1/24/2014 4:30:48 PM
Subject: Re: Postfix with Cyrus Imap

>On 01/24/14 21:03 +0000, Karol Pomaski wrote:
>>Hello All,
>>
>>I have a question. I am trying to integrate Cyrus Imap with Postfix. 
>>My postfix user accounts are on my MySQL db. All the password are 
>>encrypted using ENCRYPT() method in MySQL.
>>My question is, is it possible to force Cyrus Imap to use the same 
>>password, email as postfix uses it? Is it possible that when I add new 
>>account on my DB, it will create the mailbox automatically?
>
>What does your postfix config look like? Does it use sasl to 
>authenticate
>your users?
>
>-- Dan White



More information about the Info-cyrus mailing list