LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2009, 02:06 PM   #1
tdnnash25
Member
 
Registered: Apr 2009
Posts: 63

Rep: Reputation: 15
Testing Mail server, having problems


I followed this tutorial to configure my mail server:
http://flurdy.com/docs/postfix/

I got to the part to test my mail server:
http://flurdy.com/docs/postfix/edition5.html#test

When I telnet to localhost on port 25, the following occurs in my /var/log/mail.info log file:

Apr 23 12:49:38 verticalweb sm-mta[14220]: NOQUEUE: SYSERR(root): hash map "access": missing map file /etc/mail/access.db: No such file or directory
Apr 23 12:49:38 verticalweb sm-mta[14220]: ruleset=check_relay, arg1=localhost, arg2=127.0.0.1, relay=localhost [127.0.0.1], reject=451 4.3.0 Temporary system failure. Please try again later.

Other relevant info:

tash@server:/etc/init.d$ postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
always_bcc = myemail@gmail.com
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
delay_warning_time = 4h
disable_vrfy_command = yes
inet_interfaces = all
local_recipient_maps =
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
maximal_backoff_time = 8000s
maximal_queue_lifetime = 7d
minimal_backoff_time = 1000s
mydestination =
mynetworks_style = host
myorigin = mydomain.com (actual domain is not mydomain.com)
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_helo_timeout = 60s
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_clien t blackholes.easynet.nl,reject_rbl_client dnsbl.njabl.org
smtpd_delay_reject = yes
smtpd_hard_error_limit = 12
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_host name, reject_invalid_hostname, permit
smtpd_recipient_limit = 16
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, reje ct_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destinatio n, permitsmtpd_data_restrictions = reject_unauth_pipelining
smtpd_sender_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_se nder, reject_unknown_sender_domain, reject_unauth_pipelining, permit
smtpd_soft_error_limit = 3
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf
virtual_gid_maps = mysql:/etc/postfix/mysql_gid.cf
virtual_mailbox_base = /var/spool/mail/virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
virtual_uid_maps = mysql:/etc/postfix/mysql_uid.cf



Here's my goal: Setup a mail server to send and receive email for my domain. If there is an easier way of doing this than this long tutorial, someone please point me in the right direction. I'd REALLY appreciate it!
 
Old 04-23-2009, 05:52 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by tdnnash25 View Post
I followed this tutorial to configure my mail server:
http://flurdy.com/docs/postfix/

I got to the part to test my mail server:
http://flurdy.com/docs/postfix/edition5.html#test

When I telnet to localhost on port 25, the following occurs in my /var/log/mail.info log file:

Apr 23 12:49:38 verticalweb sm-mta[14220]: NOQUEUE: SYSERR(root): hash map "access": missing map file /etc/mail/access.db: No such file or directory
Apr 23 12:49:38 verticalweb sm-mta[14220]: ruleset=check_relay, arg1=localhost, arg2=127.0.0.1, relay=localhost [127.0.0.1], reject=451 4.3.0 Temporary system failure. Please try again later.

Here's my goal: Setup a mail server to send and receive email for my domain. If there is an easier way of doing this than this long tutorial, someone please point me in the right direction. I'd REALLY appreciate it!
Yeah, both Postfix and Sendmail are black-arts, when it comes to getting them working right, sendmail more so. You're missing the "access.db" file mentioned. Check out the man page for access, which controls blacklists/whitelists, but found this brief how-to that may help.

---------------------------------------
1. Create a file using with your blacklisted addresses/domains with customised responses as follows:

# Specific users
user@example.com 550 Sorry user, I've had enough of your spam
# Whole domains
example2.com 550 Messages not accepted from the example2.com domain
# Whole domains with a non-customised response
example3.com REJECT(Further options for this file can be found in man access 5)

2. Convert this text file into a Postfix-compatible database with postmap <file> (output will be file.db)

3. Reference this database with a check_sender_access hash:<path to file> (leave off the .db extension) option in your smtpd_recipient_restrictions directive.
------------------------------------------

So if you create an file called "access" in the /etc/mail directory, then run the "postmap access" command, it'll pop out the access.db file. Restart Postfix, and it may work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MY ISP DNS SERVER IP ...is creating some problems for my mail server daaku_n01 Linux - Networking 2 01-23-2006 06:09 PM
testing mail server speed? evilchild Linux - Networking 3 04-08-2005 05:14 PM
E-mail server problems ®åD\° Linux - Newbie 1 06-06-2004 09:30 PM
Stress Testing E-mail Server Dewar Linux - Software 0 04-21-2004 07:17 PM
Mail server problems elderain Linux - Newbie 14 03-14-2004 03:37 PM


All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration