Hello,
I am currently having an issue with Web-Cyradm. I am using the
following setup: postfix with pgsql and sasl2 support and cyrus imapd.
The issue is as follows, when trying to log into the web interface, upon
entering the correct username and password and clicking on the submit
button, the page just refreshes, and comes back to the same screen with
no username or password in the fields.
Here is where it is wierd.....
There are no errors in any of the log files, the web-cyradm-login.log
file shows the POST, but does not show any errors.
Here are the specifics of the set up:
Machine - dual opteron amd box
OS - Free BSD 6.0
Software packages:
apache 1.3.34 (built from source)
php 4.4.0 (built from source)
Following packages installed from ports:
cyrus-imapd-2.2.12_1
cyrus-sasl-2.1.21
cyrus-sasl-saslauthd-2.1.21
postfix-2.3.20050726,2
postgresql-server-8.0.3
pam-pgsql-0.6.1
Here are the appropriate config files:
- imapd.conf -
configdirectory: /var/imap
#defaultpartition: default
partition-default: /var/spool/imap
unixhierarchysep: yes
servername: mailer01.farheap.com
allowanonymouslogin: no
allowplaintext: yes
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
admins: cyrus
autocreatequota: 0
reject8bit: no
sieveusehomedir: false
sievedir: /var/imap/sieve
sendmail: /usr/sbin/sendmail
postmaster: postmaster
sieve_maxscriptsize: 32
sieve_maxscripts: 5
sasl_pwcheck_method: saslauthd
sasl_mech_list: plain digest-md5 cram-md5
tls_ca_file: /var/imap/server.pem
tls_cert_file: /var/imap/server.pem
tls_key_file: /var/imap/server.pem
- end imapd.conf -
- cyrus.conf -
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=0
# imaplocal cmd="imapd -C /usr/local/etc/imapd-local.conf"
listen="127.0.0.1:imap" prefork=0
imaps cmd="imapd -s" listen="imaps" prefork=0
# imapslocal cmd="imapd -C /usr/local/etc/imapd-local.conf"
listen="127.0.0.1:imap" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0
# sievelocal cmd="timsieved -C /usr/local/etc/imapd-local.conf"
listen="127.0.0.1:sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=0
# nntps cmd="nntpd -s" listen="nntps" prefork=0
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
# lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp"
prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/imap/socket/notify"
proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=1440
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=1440
}
- end cyrus.conf -
- postfix main.cf -
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
mail_owner = postfix
#default_privs = nobody
myhostname = mailer01.example.com
mydomain = example.com
myorigin = $myhostname
inet_interfaces = all
proxy_read_maps = proxy:unix:passwd.byname
proxy:pgsql:/usr/local/etc/pgsql-virtual.cf
proxy:pgsql:/usr/local/etc/pgsql-canonical.cf
proxy:pgsql:/usr/local/etc/postfix/pgsql-mydestination.cf
virtual_maps = proxy:pgsql:/usr/local/etc/postfix/pgsql-virtual.cf
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mail.$mydomain, www.$mydomain, ftp.$mydomain,
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_transport = cyrus
fallback_transport = lmtp:unix:public/lmtp
header_checks = regexp:/usr/local/etc/postfix/header_checks
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
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual,
proxy:pgsql:/usr/local/etc/postfix/pgsql-virtual.cf
sender_canonical_maps =
proxy:pgsql:/usr/local/etc/postfix/pgsql-canonical.cf
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions =
reject_invalid_hostname,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
reject_unauth_destination,
reject_rbl_client zombie.dnsbl.sorbs.net,
reject_rbl_client relays.ordb.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl.spamhaus.org,
permit
mime_header_checks=pcre:/usr/local/etc/postfix/body_checks
- end postfix main.cf -
- smtpd.conf -
pwcheck_method: saslauthd
mech_list: plain
- end smtpd.conf -
- /etc/pam_pgsql.conf -
database = mail
host = localhost
user = mail
password = secret
table = accountuser
user_column = username
pwd_column = password
pw_type = md5
- end /etc/pam_pgsql.conf -
- /etc/pam.d/imap sieve smtp pop pop3 files -
auth sufficient /usr/lib/pam_pgsql.so
#auth sufficient pam_unix_auth.so
account required /usr/lib/pam_pgsql.so
#account sufficient pam_unix_acct.so
- end /etc/pam.d/imap sieve smtp pop pop3 files -
I have followed and adhered to the following walk through with some
exceptions, where I had to replace the mysql stuff with postgresql
specific stuff
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/t1.html
For the postgresql related stuff, I have plugged in and modified
different settings from the following pdf, which is apparantly not
available anylonger:
http://www.web-cyradm.org/documentation/Postfix-cyrus-postgreSQL-web-cyradm.pdf
Any help would be greatly appreciated.
Thanks.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm