Hello everyone! can someone please help me! ... I'm a newbie, and I'm looking after this server which was setup by someone else. The email server is running fedra core 4, with services like postfix, apache, dovecot, spamassassin, amavis among others. The firewall in the LAN is running IPCop. the email server is unable to receive nor send any email outside the LAN nor between the users inside the the LAN. I tried to ping the firewall from the email server, and it says "Destination port unreachable" I want to fix this first. Can someone please help me. If you need me to run some commands on the server, I will be more than happy to assist! cheers
Hi, Can you telnet your Server on port 25 ? also run chkconfig --list |more to check your sendmail run level. Then check that the Sendmail deamon is running. BRGDS Johan
I can't telnet to the localhost on port 25. The output is pasted below Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. Thank you in advance!
pasted below, is the result from running the command chkconfig --list |more NetworkManager 0ff 1ff 2ff 3ff 4ff 5ff 6ff NetworkManagerDispatcher 0ff 1ff 2ff 3ff 4ff 5ff 6ff acpid 0ff 1ff 2ff 3n 4n 5n 6ff amavisd 0ff 1ff 2n 3ff 4n 5n 6ff anacron 0ff 1ff 2n 3n 4n 5n 6ff apmd 0ff 1ff 2n 3n 4n 5n 6ff atd 0ff 1ff 2ff 3n 4n 5n 6ff auditd 0ff 1ff 2n 3n 4n 5n 6ff autofs 0ff 1ff 2ff 3n 4n 5n 6ff autogroup 0ff 1ff 2ff 3ff 4ff 5ff 6ff autohome 0ff 1ff 2ff 3ff 4ff 5ff 6ff bluetooth 0ff 1ff 2ff 3ff 4ff 5ff 6ff clamd 0ff 1ff 2n 3n 4n 5n 6ff cpuspeed 0ff 1n 2n 3n 4n 5n 6ff crond 0ff 1ff 2n 3n 4n 5n 6ff cups 0ff 1ff 2n 3n 4n 5n 6ff dhcdbd 0ff 1ff 2ff 3ff 4ff 5ff 6ff diskdump 0ff 1ff 2ff 3ff 4ff 5ff 6ff dovecot 0ff 1ff 2n 3n 4n 5n 6ff gpm 0ff 1ff 2n 3n 4n 5n 6ff haldaemon 0ff 1ff 2ff 3n 4n 5n 6ff httpd 0ff 1ff 2n 3n 4n 5n 6ff iptables 0ff 1ff 2n 3ff 4n 5n 6ff irda 0ff 1ff 2ff 3ff 4ff 5ff 6ff isdn 0ff 1ff 2ff 3ff 4ff 5ff 6ff kudzu 0ff 1ff 2ff 3n 4n 5n 6ff mdmonitor 0ff 1ff 2n 3n 4n 5n 6ff mdmpd 0ff 1ff 2ff 3ff 4ff 5ff 6ff messagebus 0ff 1ff 2ff 3n 4n 5n 6ff named 0ff 1ff 2ff 3ff 4ff 5ff 6ff netdump 0ff 1ff 2ff 3ff 4ff 5ff 6ff netfs 0ff 1ff 2ff 3n 4n 5n 6ff netplugd 0ff 1ff 2ff 3ff 4ff 5ff 6ff network 0ff 1ff 2n 3n 4n 5n 6ff nfs 0ff 1ff 2ff 3ff 4ff 5ff 6ff nfslock 0ff 1ff 2ff 3n 4n 5n 6ff nscd 0ff 1ff 2ff 3ff 4ff 5ff 6ff ntpd 0ff 1ff 2n 3n 4n 5n 6ff pcmcia 0ff 1ff 2ff 3ff 4ff 5ff 6ff portmap 0ff 1ff 2ff 3n 4n 5n 6ff postfix 0ff 1ff 2n 3n 4n 5n 6ff psacct 0ff 1ff 2ff 3ff 4ff 5ff 6ff rdisc 0ff 1ff 2ff 3ff 4ff 5ff 6ff rhnsd 0ff 1ff 2ff 3n 4n 5n 6ff rpcgssd 0ff 1ff 2ff 3n 4n 5n 6ff rpcidmapd 0ff 1ff 2ff 3n 4n 5n 6ff rpcsvcgssd 0ff 1ff 2ff 3ff 4ff 5ff 6ff saslauthd 0ff 1ff 2n 3n 4n 5n 6ff smb 0ff 1ff 2n 3n 4n 5n 6ff spamassassin 0ff 1ff 2ff 3n 4ff 5ff 6ff sshd 0ff 1ff 2n 3n 4n 5n 6ff syslog 0ff 1ff 2n 3n 4n 5n 6ff webmin 0ff 1ff 2ff 3n 4n 5ff 6ff winbind 0ff 1ff 2n 3n 4n 5n 6ff ypbind 0ff 1ff 2ff 3ff 4ff 5ff 6ff yum 0ff 1ff 2ff 3ff 4ff 5ff 6ff
What's in /etc/postfix/main.cf (please strip out the comments)? Any errors in the mail log? What's in /etc/hosts and /etc/resolv.conf? What's the output of Code: hostname -f ?
Here's whats in /etc/postfix/main.cf -> please note, I have replaced our domain name and public IP address with fake ones! cheers mydomain = domain1.com myhostname = domain1.com myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mynetworks = 127.0.0.0/8 relay_domains = $mydestination proxy_interfaces = my public IP address home_mailbox = Maildir/ command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix unknown_local_recipient_reject_code = 550 virtual_alias_domains = domain2.com virtual_alias_maps = hash:/etc/postfix/virtual alias_maps = 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 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.1.5/samples readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES # smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = broken_sasl_auth_clients = yes #smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_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/smtpd.key smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_recipient_restrictions = reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unauth_pipelining, permit_mynetworks, check_helo_access hash:/etc/postfix/helo_restrictions, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, reject_rbl_client list.dsbl.org, reject_rbl_client korea.services.net, check_policy_service unix:/var/spool/postfix/postgrey/socket permit tls_random_source = dev:/dev/urandom #content_filter = smtp-amavis:[127.0.0.1]:10024 virtual_alias_domains = virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /home/vmail virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 transport_maps = mysql:/etc/postfix/mysql-virtual_transports.cf virtual_create_maildirsize = yes virtual_mailbox_extended = yes virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_maildir_limit_message = "The user you are trying to reach is over quota." virtual_overquota_bounce = yes proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
pasted below is the output from the command : tail /var/log/maillog Mar 6 10:22:28 mail last message repeated 3 times Mar 6 10:22:31 mail postfix/cleanup[7209]: fatal: unsupported dictionary type: mysql Mar 6 10:22:32 mail postfix/master[2071]: warning: process /usr/libexec/postfix/cleanup pid 7209 exit status 1 Mar 6 10:22:32 mail postfix/master[2071]: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling Mar 6 10:22:46 mail imap-login: Login: kl01 [127.0.0.1] Mar 6 10:22:50 mail postfix/master[2071]: warning: process /usr/libexec/postfix/proxymap pid 7216 exit status 2 Mar 6 10:22:50 mail postfix/master[2071]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling Mar 6 10:23:32 mail postfix/cleanup[7227]: fatal: unsupported dictionary type: mysql Mar 6 10:23:33 mail postfix/master[2071]: warning: process /usr/libexec/postfix/cleanup pid 7227 exit status 1 Mar 6 10:23:33 mail postfix/master[2071]: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling
here's whats in /etc/hosts 127.0.0.1 mail.tti.local mail localhost.localdomain localhost 192.168.0.2 mail.tti.local 192.168.0.8 faifekau.tti.local 192.168.0.1 tevolo.tti.local 192.168.0.4 falelotu.tti.local and in /etv/resolv.conf nameserver 192.168.0.8 nameserver 192.168.0.1
Something is wrong with your mysql setup. Does mysql work if you use the command line and test some mysql commands? In the postfix configuration files: no typo in the mysql commands?
Like I said, I'm really new to these stuff. If you could just give me some MySQL commands to run and paste out the output, that would be great! cheers
This server was setup by someone else who doesn't work here anymore. Can you help me check postfix and see if mysql is supported? How?
Take a look at this tutorial: http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier It was written for FC 5, but I hope that FC 4 is similar.