Current time: 05-22-2024, 04:34 AM Hello There, Guest! (LoginRegister)


Post Reply 
[Solved] 554 5.7.1 Relay access denied
Author Message
measaura Offline
Junior Member
*

Posts: 28
Joined: Oct 2007
Reputation: 0
Post: #38
RE: 554 5.7.1 Relay access denied
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 Smile
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.
10-20-2007 03:56 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 554 5.7.1 Relay access denied - rbtux - 10-17-2007, 12:19 AM
RE: 554 5.7.1 Relay access denied - joximu - 10-17-2007, 07:13 PM
RE: 554 5.7.1 Relay access denied - joximu - 10-17-2007, 08:13 PM
RE: 554 5.7.1 Relay access denied - joximu - 10-17-2007, 08:32 PM
RE: 554 5.7.1 Relay access denied - joximu - 10-17-2007, 09:07 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-17-2007, 09:36 PM
RE: 554 5.7.1 Relay access denied - joximu - 10-19-2007, 04:04 AM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 04:55 AM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 04:02 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 04:34 PM
RE: 554 5.7.1 Relay access denied - joximu - 10-19-2007, 04:48 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 04:57 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 05:09 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 05:32 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 05:57 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 06:02 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 06:41 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 07:07 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 07:08 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 07:10 PM
RE: 554 5.7.1 Relay access denied - rbtux - 10-19-2007, 07:33 PM
RE: 554 5.7.1 Relay access denied - measaura - 10-20-2007 03:56 PM
RE: 554 5.7.1 Relay access denied - joximu - 10-20-2007, 06:24 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)