วันพุธที่ 3 พฤศจิกายน พ.ศ. 2553

access denied

http://isp-control.net/forum/printthread.php?tid=1544
today I finally manage to make things tick. I would like to share my settings here.




dovecot.conf



Code:



base_dir = /var/run/dovecot/

protocols = imap pop3

disable_plaintext_auth = no

listen = *

syslog_facility = mail

log_path = /var/log/dovecot.log

info_log_path = /var/log/dovecot-info.log

auth_debug=yes

auth_debug_passwords=yes

login_greeting = Dovecot ready.

mail_location = maildir:/var/mail/virtual/%d/%n

mail_extra_groups = mail

protocol imap {

}

namespace private {

prefix = INBOX.

inbox = yes

}

protocol pop3 {

pop3_uidl_format = %u-%v

}

protocol lda {

postmaster_address = postmaster@(hidden).com

auth_socket_path = /var/run/dovecot/auth-master

}

auth default {

mechanisms = plain login

passdb sql {

args = /etc/dovecot-sql-domain.conf

}

userdb sql {

args = /etc/dovecot-sql-domain.conf

}

passdb sql {

args = /etc/dovecot-sql-subdomain.conf

}

userdb sql {

args = /etc/dovecot-sql-subdomain.conf

}

socket listen {

client {

path = /var/spool/postfix/private/auth

mode = 0660

user = postfix

group = postfix

}

master {

path = /var/run/dovecot/auth-master

mode = 0660

user = vmail

group = mail

}

}

user = vmail

}

plugin {

}



postconf -n





Code:



alias_database = hash:/etc/aliases

alias_maps = hash:/etc/aliases

append_at_myorigin = yes

append_dot_mydomain = no

biff = no

broken_sasl_auth_clients = yes

command_directory = /usr/sbin

config_directory = /etc/postfix

daemon_directory = /usr/libexec/postfix

debug_peer_level = 2

html_directory = no

inet_interfaces = all

local_destination_recipient_limit = 1

local_recipient_maps = unix:passwd.byname $alias_database

local_transport = local

mail_owner = postfix

mail_spool_directory = /var/mail

mailbox_command = procmail -a "$EXTENSION"

mailbox_size_limit = 0

mailq_path = /usr/bin/mailq.postfix

manpage_directory = /usr/share/man

mydestination = $myhostname, $mydomain

mydomain = (hidden).com

myhostname = localhost.(hidden).com

mynetworks_style = host

myorigin = $mydomain

newaliases_path = /usr/bin/newaliases.postfix

queue_directory = /var/spool/postfix

readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES

sample_directory = /usr/share/doc/postfix-2.3.3/samples

sendmail_path = /usr/sbin/sendmail.postfix

setgid_group = postdrop

smtpd_banner = $myhostname ISPCP 1.0 Priamos Managed ESMTP 1.0.0 RC2 OMEGA

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

smtpd_sasl_auth_enable = yes

smtpd_sasl_authenticated_header = yes

smtpd_sasl_path = private/auth

smtpd_sasl_security_options = noanonymous

smtpd_sasl_type = dovecot

smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

transport_maps = hash:/etc/postfix/ispcp/transport

unknown_local_recipient_reject_code = 550

virtual_alias_maps = hash:/etc/postfix/ispcp/aliases

virtual_gid_maps = static:12

virtual_mailbox_base = /var/mail/virtual

virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains

virtual_mailbox_limit = 0

virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes

virtual_minimum_uid = 12004

virtual_transport = dovecot

virtual_uid_maps = static:12004



*note: gid & uid has been changed to the vmail uid & mail gid. Please update uid & gid in your dovecot-sql-domain.conf and dovecot-sql-subdomain.conf too if it's different.



for Fedora Core 6 (that I use), please change the given code in HowTo to the code below. It solves your unknown transport error.



Code:



dovecot unix - n n - - pipe

flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d ${recipient}

*note: argv=/usr/lib/dovecot/deliver changed to argv=/usr/libexec/dovecot/deliver



and on the client (Outlook etc.) please tick on "My outgoing server (SMTP) requires authentication" under Outgoing Server in advanced setting. Please refer to your version on setting this.



The rest of the setting on Postfix is the default setting upon installation. I manage to solve this by uninstalling Postfix & re-install Postfix and edit the default /etc/postfix/main.cf based on values given in /etc/ispcp/postfix/main.cf. If you have installed ispCP then uninstall the Postfix, your main.cf & master.cf will be backed up with main.cf.rpmsave & master.cf.rpmsave.



Now, i'm going to solve the webmail issue



Quote:Error opening ../data/default_pref

Could not create initial preference file!

../data/ should be writable by user apache

Please contact your system administrator and report this error.



gonna check Squrrelmail FAQ for this.





--------------------------------------------------------------------------------

RE: 554 5.7.1 Relay access denied - joximu - 10-20-2007 06:24 PM



Could you change the title to "[solved] ..."



and for the other issue make a new thread...



/Joxi





--------------------------------------------------------------------------------

[solved] RE: 554 5.7.1 Relay access denied - measaura - 10-20-2007 10:15 PM



Thanks for your guidance.



This case is closed. webmail issue on other thread.

ไม่มีความคิดเห็น: