PDA

View Full Version : mail error, perfect setup fedora core 5


robotny
9th November 2006, 18:21
hi, i am setting up ispconfig fedora core5 perfect setup. almost all works fine, but when i send an email message to accounts in my ispconfig server get this thing:

<account@domain.tld>: host mail.domain.tld[ip address] said: 554 <account@domain.tld>: Relay
access denied (in reply to RCPT TO command)

sending email from that domain have no problems.

also have a trouble to access mysql dbs, al connections come from fqdn, not from localhost, ...anyone knows where can i change this?

till
9th November 2006, 19:36
hi, i am setting up ispconfig fedora core5 perfect setup. almost all works fine, but when i send an email message to accounts in my ispconfig server get this thing:

<account@domain.tld>: host mail.domain.tld[ip address] said: 554 <account@domain.tld>: Relay
access denied (in reply to RCPT TO command)

sending email from that domain have no problems.

Please post your main.cf file, comments stripped. is the domain domain.tld listed in the file /etc/postfix/local-host-names

also have a trouble to access mysql dbs, al connections come from fqdn, not from localhost, ...anyone knows where can i change this?

Please check your /etc/hosts file, make sure that IP 127.0.0.1 is assoziated with the domain localhost

robotny
9th November 2006, 20:30
this is ta main.cf file:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

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/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.8/samples
readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unau
th_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/
mailbox_command =


and, yes, all the domains are listed in local-host-names.

thanks a lot.

till
10th November 2006, 10:53
Please remove the line:

mydestination = $myhostname, localhost.$mydomain, localhost

and then add these two lines:

virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names

and restart postfix. It seems that a system update has removed the changes from the ISPConfig installer.

robotny
10th November 2006, 14:41
i made the mods, and all works fine now!!
thank you very much!

bye.