Paul Cocker wrote: > I have a CentOS 5.2 machine running postfix 2.3.3 install via yum and am > setting up for the first time, having been a sendmail user previously. > > I have been configuring it based around 'Postfix email firewall/gateway' > setup in the postfix documentation as this machine will be acting as the > primary mail server for outgoing mail and the second MX entry for > incoming. > > The server has hosts.deny set to ALL:ALL but smtp in hosts.allow is also > set to ALL. > > Running a postconf -n results in the following output: > [...] > relay_domains = domain1.co.uk, domain2.co.uk, domain3.co.uk >
No relay_recipient_maps? You seem to be heading to be a (Back|Out)scatter source. Highly suggest you have a static map or db map (LDAP,SQL) of real users. > > Oct 6 14:57:21 merlin postfix/trivial-rewrite[13474]: fatal: open > database /etc/postfix/virtual.db: No such file or directory > You forgot to run 'postmap hash:/etc/postfix/virtual'. This must be done for all hash, cdb, btree, (s)dbm files that you define as maps. > > Do I need to manually create virtual.db (and should I run a > set-permissions from postconf if I do?), or is that incidental to the > other errors? Are these errors the reason it won't accept connections on > port 25, or is there an error in the config above? > Does master.cf have an uncommented line for the smtpd service? What happens if you remove (comment) the line from hosts.deny? Brian