Postfix email server problems Access denied 554 554 5.7.1 state 14

Discussion in 'Server Operation' started by AceRimmer, Jun 16, 2008.

  1. AceRimmer

    AceRimmer New Member

    Hi,

    I've been having troubles with this for days and can't get anywhere with it.

    My server ip is: 77.92.85.11
    Mail server: mail.spam.com

    When i try sending an email to anything like, root@spam.com I get:


    Code:
    Technical details of permanent failure:
    PERM_FAILURE: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <root@spam.com>: Recipient address rejected: Access denied (state 14).
    
    Here is what /var/log/mail.info looks like, its full of entries like this:

    Code:
    Jun 11 10:43:02 server31010 postfix/qmgr[30611]: 8F9C92E4F23: from=<root@mail.spam.com>, size=662, nrcpt=1 $
    Jun 11 10:43:28 server31010 postfix/local[30613]: fatal: open database /etc/aliases.db: No such file or dire$
    Jun 11 10:43:29 server31010 postfix/master[31403]: warning: process /usr/lib/postfix/local pid 30613 exit st$
    Jun 11 10:43:29 server31010 postfix/master[31403]: warning: /usr/lib/postfix/local: bad command startup -- t$
    Jun 11 10:44:01 server31010 postfix/pickup[30537]: DD7B42E5066: uid=0 from=<root>
    
    Let me know what files i need to show to help me fix this nightmare, or anything else you need to know.

    I'm a complete novice so help will be greatly appreciated
     
    Last edited: Jan 7, 2010
  2. AceRimmer

    AceRimmer New Member

    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
     
    Last edited: Jan 7, 2010
  3. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What are the outputs of
    Code:
    ls -l /etc
    and
    Code:
    ls -l /etc/postfix
    ?
     
  4. AceRimmer

    AceRimmer New Member

    Thanks for the reply falko,

    ls -l /etc
    Code:
    -rw-r--r--   1 root root     2803 2008-05-22 19:30 adduser.conf
    -rw-r--r--   1 root root       46 2008-05-22 12:18 adjtime
    -rw-r--r--   1 root root      102 2008-05-28 13:40 aliases
    -rw-------   1 root root       44 2008-05-27 20:14 aliases.save
    drwxr-xr-x   2 root root     4096 2008-05-27 13:18 alternatives
    drwxr-xr-x   4 root root     4096 2008-05-27 13:34 amavis
    drwxr-xr-x   7 root root     4096 2008-05-27 14:12 apache2
    drwxr-xr-x   6 root root     4096 2008-05-22 19:32 apm
    drwxr-xr-x   2 root root     4096 2008-05-22 19:32 apparmor
    drwxr-xr-x   5 root root     4096 2008-05-22 19:32 apparmor.d
    drwxr-xr-x   4 root root     4096 2008-06-04 19:55 apt
    -rw-r-----   1 root daemon    144 2007-02-20 14:05 at.deny
    -rw-r--r--   1 root root     1585 2007-10-05 16:25 bash.bashrc
    -rw-r--r--   1 root root   216071 2007-10-05 16:25 bash_completion
    drwxr-xr-x   2 root root     4096 2008-05-27 13:18 bash_completion.d
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 belocs
    drwxr-sr-x   2 root bind     4096 2008-06-09 08:52 bind
    -rw-r--r--   1 root root      332 2007-09-30 23:40 bindresvport.blacklist
    -rw-r--r--   1 root root      248 2008-05-22 11:33 blkid.tab
    -rw-r--r--   1 root root      248 2008-05-22 11:33 blkid.tab.old
    drwxr-xr-x   2 root root     4096 2008-05-22 19:32 calendar
    drwxr-s---   2 root dip      4096 2008-05-22 19:32 chatscripts
    drwxr-xr-x   5 root root     4096 2008-05-27 13:33 clamav
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 console-setup
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 console-tools
    drwxr-xr-x   2 root root     4096 2008-06-04 20:43 courier
    drwxr-xr-x   2 root root     4096 2008-05-27 13:34 cron.d
    drwxr-xr-x   2 root root     4096 2008-05-28 13:57 cron.daily
    drwxr-xr-x   2 root root     4096 2008-05-22 19:32 cron.hourly
    drwxr-xr-x   2 root root     4096 2008-05-27 14:22 cron.monthly
    -rw-r--r--   1 root root      724 2006-12-20 14:51 crontab
    drwxr-xr-x   2 root root     4096 2008-05-22 19:32 cron.weekly
    drwxr-xr-x   2 root root     4096 2008-05-02 08:32 cups
    drwxr-xr-x   2 root root     4096 2008-05-27 13:41 dcc
    -rw-r--r--   1 root root     2673 2007-10-01 13:08 debconf.conf
    -rw-r--r--   1 root root       10 2007-04-01 12:47 debian_version
    drwxr-xr-x   2 root root     4096 2008-06-04 20:00 default
    drwxr-xr-x   4 root root     4096 2008-05-27 14:40 defoma
    -rw-r--r--   1 root root      600 2007-07-10 17:48 deluser.conf
    drwxr-xr-x   4 root root     4096 2008-05-22 19:30 dhcp3
    drwxr-xr-x   3 root root     4096 2008-05-27 13:18 dpkg
    -rw-r--r--   1 root root       98 2008-05-22 19:30 environment
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 event.d
    -rw-r--r--   1 root root      354 2007-03-05 16:23 fdmount.conf
    drwxr-xr-x   4 root root     4096 2008-05-27 14:40 fonts
    -rw-r--r--   1 root root      475 2008-05-22 19:29 fstab
    -rw-r--r--   1 root root      132 2007-06-15 14:00 ftpusers
    -rw-r-----   1 root fuse      216 2007-09-19 01:24 fuse.conf
    -rw-r--r--   1 root root     2349 2007-09-30 23:40 gai.conf
    drwxr-xr-x   2 root root     4096 2008-05-27 13:17 gamin
    drwxr-xr-x   2 root root     4096 2008-05-27 14:40 gdm
    drwxr-xr-x   2 root root     4096 2008-05-27 14:40 gproftpd
    drwxr-xr-x   2 root root     4096 2008-05-22 19:32 groff
    -rw-r--r--   1 root root      786 2008-06-04 20:27 group
    -rw-------   1 root root      770 2008-06-04 19:59 group-
    drwxr-xr-x   2 root root     4096 2008-05-22 19:32 grub.d
    -rw-r-----   1 root shadow    637 2008-06-04 20:27 gshadow
    -rw-------   1 root root      625 2008-06-04 19:59 gshadow-
    drwxr-xr-x   2 root root     4096 2008-05-27 14:40 gtk-2.0
    -rw-r--r--   1 root root     4793 2007-06-14 10:02 hdparm.conf
    -rw-r--r--   1 root root       92 2007-05-15 17:07 host.conf
    -rw-r--r--   1 root root       23 2008-05-22 19:29 hostname
    -rw-r--r--   1 root root      345 2008-06-09 08:48 hosts
    -rw-r--r--   1 root root      579 2008-05-22 19:30 hosts.allow
    -rw-r--r--   1 root root      878 2008-05-22 19:30 hosts.deny
    -rw-r--r--   1 root root       60 2008-06-06 08:25 inetd.conf
    drwxr-xr-x   2 root root     4096 2008-06-04 20:00 init.d
    drwxr-xr-x   5 root root     4096 2008-05-22 19:30 initramfs-tools
    -rw-r--r--   1 root root     1723 2007-10-02 15:35 inputrc
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 iproute2
    -rw-r--r--   1 root root       19 2007-10-08 11:39 issue
    -rw-r--r--   1 root root       12 2007-10-08 11:39 issue.net
    -rw-r--r--   1 root root      240 2008-05-22 19:32 kernel-img.conf
    drwxr-xr-x   3 root root     4096 2008-05-27 13:33 ldap
    -rw-r--r--   1 root root    18359 2008-06-06 08:25 ld.so.cache
    -rw-r--r--   1 root root       34 2008-05-22 19:30 ld.so.conf
    drwxr-xr-x   2 root root     4096 2008-05-22 11:32 ld.so.conf.d
    -rw-r--r--   1 root root     2586 2003-12-04 07:57 locale.alias
    -rw-r--r--   1 root root     3661 2008-05-22 11:33 localtime
    drwxr-xr-x   6 root root     4096 2008-05-24 09:51 logcheck
    -rw-r--r--   1 root root     9681 2007-05-18 11:05 login.defs
    -rw-r--r--   1 root root      599 2006-06-19 20:14 logrotate.conf
    drwxr-xr-x   2 root root     4096 2008-06-04 20:00 logrotate.d
    drwxr-xr-x   2 root root     4096 2007-10-04 20:40 lsb-base
    -rw-r--r--   1 root root     3820 2007-09-06 18:43 lsb-base-logging.sh
    -rw-r--r--   1 root root       96 2007-10-08 10:18 lsb-release
    -rw-r--r--   1 root root    10814 2006-02-20 21:55 ltrace.conf
    -rw-r--r--   1 root root      111 2007-06-12 16:34 magic
    -rw-r--r--   1 root root      111 2007-06-12 16:34 magic.mime
    drwxr-xr-x   2 root root     4096 2008-05-24 09:51 mail
    -rw-r--r--   1 root root     2209 2008-05-27 13:18 mailcap
    -rw-r--r--   1 root root      449 2006-12-06 18:13 mailcap.order
    -rw-r--r--   1 root root       16 2008-06-06 08:25 mailname
    -rw-r--r--   1 root root      125 2007-05-10 15:44 mail.rc
    -rw-r--r--   1 root root     4696 2007-05-23 08:00 manpath.config
    -rw-r--r--   1 root root    11742 2007-03-05 16:23 mediaprm
    -rw-r--r--   1 root root    20847 2006-12-06 18:13 mime.types
    -rw-r--r--   1 root root      330 2007-09-06 19:43 mke2fs.conf
    drwxr-xr-x   3 root root     4096 2008-05-22 19:32 modprobe.d
    -rw-r--r--   1 root root      212 2008-05-22 19:32 modules
    lrwxrwxrwx   1 root root       13 2008-05-22 19:30 motd -> /var/run/motd
    -rw-r--r--   1 root root      266 2008-05-22 19:30 motd.tail
    -rw-r--r--   1 root root      405 2008-05-22 12:27 mtab
    drwxr-xr-x   3 root root     4096 2008-05-23 14:48 mysql
    -rw-r--r--   1 root root     7672 2007-05-30 09:00 nanorc
    -rw-r--r--   1 root root      611 2007-09-29 07:20 Net
    drwxr-xr-x   6 root root     4096 2008-05-27 10:15 network
    -rw-r--r--   1 root root       91 2007-05-15 17:07 networks
    -rw-r--r--   1 root root      475 2006-08-28 17:33 nsswitch.conf
    drwxr-xr-x   2 root root     4096 2008-05-22 19:29 opt
    -rw-r--r--   1 root root      552 2007-10-01 19:46 pam.conf
    drwxr-xr-x   2 root root     4096 2008-05-27 14:22 pam.d
    drwxr-xr-x   2 root root     4096 2008-05-27 14:40 pango
    -rw-r--r--   1 root root     1584 2008-06-09 08:31 passwd
    -rw-------   1 root root     1548 2008-06-04 20:27 passwd-
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 pcmcia
    drwxr-xr-x   2 root root     4096 2008-05-28 13:57 pear
    drwxr-xr-x   4 root root     4096 2008-05-22 19:30 perl
    drwxr-xr-x   5 root root     4096 2008-05-23 14:45 php5
    drwxr-xr-x   2 root root     4096 2008-05-27 14:12 phpmyadmin
    -rw-r--r--   1 root root      342 2008-05-22 19:32 popularity-contest.conf
    drwxr-xr-x   3 root root     4096 2008-06-09 08:33 postfix
    drwxr-xr-x   2 root root     4096 2008-05-29 11:29 postfixadmin
    drwxr-xr-x   2 root root     4096 2008-06-04 19:59 postgrey
    drwxr-xr-x   8 root dip      4096 2008-05-22 19:32 ppp
    -rw-r--r--   1 root root      369 2008-05-22 19:30 profile
    drwxr-xr-x   2 root root     4096 2008-05-27 14:33 proftpd
    -rw-r--r--   1 root root     2478 2007-05-18 12:02 protocols
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 python
    drwxr-xr-x   2 root root     4096 2008-05-22 11:33 python2.5
    drwxr-xr-x   2 root root     4096 2008-05-24 09:51 razor
    drwxr-xr-x   2 root root     4096 2008-06-04 20:00 rc0.d
    drwxr-xr-x   2 root root     4096 2008-06-04 19:59 rc1.d
    drwxr-xr-x   2 root root     4096 2008-06-04 19:59 rc2.d
    drwxr-xr-x   2 root root     4096 2008-06-04 19:59 rc3.d
    drwxr-xr-x   2 root root     4096 2008-06-04 19:59 rc4.d
    drwxr-xr-x   2 root root     4096 2008-06-04 19:59 rc5.d
    drwxr-xr-x   2 root root     4096 2008-06-04 20:00 rc6.d
    -rwxr-xr-x   1 root root      306 2008-05-22 19:30 rc.local
    drwxr-xr-x   2 root root     4096 2008-06-04 20:00 rcS.d
    drwxr-xr-x   3 root root     4096 2008-05-24 09:51 resolvconf
    -rw-r--r--   1 root root       70 2008-05-22 11:46 resolv.conf
    -rwxr-xr-x   1 root root      268 2007-09-12 21:26 rmt
    -rw-r--r--   1 root root      887 2007-05-18 12:02 rpc
    -rw-rw----   1 root sasl    12288 2008-05-27 13:17 sasldb2
    -rw-r--r--   1 root root      994 2007-05-18 11:05 securetty
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 security
    -rw-r--r--   1 root root    18289 2008-06-09 08:41 services
    -rw-r-----   1 root shadow   1159 2008-06-09 08:31 shadow
    -rw-------   1 root root     1100 2008-06-06 10:00 shadow-
    -rw-r--r--   1 root root      176 2008-05-27 14:37 shells
    drwxr-xr-x   2 root root     4096 2008-06-04 20:57 shorewall
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 skel
    drwxr-xr-x   2 root root     4096 2008-05-24 09:51 spamassassin
    drwxr-xr-x   2 root root     4096 2008-05-28 13:57 squirrelmail
    drwxr-xr-x   2 root root     4096 2008-05-22 12:36 ssh
    drwxr-xr-x   4 root root     4096 2008-05-22 12:47 ssl
    -r--r-----   1 root root      496 2008-05-22 19:32 sudoers
    -rw-r--r--   1 root root      883 2007-07-31 09:14 sysctl.conf
    -rw-r--r--   1 root root     1614 2007-09-17 22:04 syslog.conf
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 terminfo
    -rw-r--r--   1 root root       14 2008-05-22 11:33 timezone
    -rw-r--r--   1 root root     1260 2007-05-05 18:03 ucf.conf
    drwxr-xr-x   3 root root     4096 2008-05-22 11:33 udev
    -rw-r--r--   1 root root     1044 2007-10-03 19:37 updatedb.conf
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 vim
    drwxr-xr-x   2 root root     4096 2008-05-22 19:32 w3m
    drwxr-xr-x 111 root root     4096 2008-06-06 10:50 webmin
    -rw-r--r--   1 root root     4221 2007-06-18 10:55 wgetrc
    drwxr-xr-x   2 root root     4096 2008-05-22 19:30 wpa_supplicant
    drwxr-xr-x   5 root root     4096 2008-05-27 14:40 X11
    -rw-r--r--   1 root root      424 2007-08-22 05:44 zsh_command_not_found
    
    ls -l /etc/postfix
    Code:
    -rw-r--r-- 1 root root      102 2008-06-04 20:26 aliases
    -rw-r--r-- 1 root root    12288 2008-06-06 08:25 aliases.db
    -rw-r--r-- 1 root root      477 2008-05-24 09:51 dynamicmaps.cf
    -rw-r--r-- 1 root root      106 2008-06-09 08:32 local-host-names
    -rw-r--r-- 1 root root     1262 2008-06-16 19:08 main.cf
    -rw-r--r-- 1 root root     1245 2008-05-24 09:53 main.cf-orig
    -rw-r--r-- 1 root root     4614 2008-06-09 08:39 master.cf
    -rw-r--r-- 1 root root     4035 2008-05-24 09:52 master.cf-orig
    -rw-r--r-- 1 root root      156 2008-06-04 20:31 mysql_alias.cf
    -rw-r--r-- 1 root root      153 2008-06-04 20:31 mysql_domains.cf
    -rw-r--r-- 1 root root      104 2008-06-04 20:30 mysql_gid.cf
    -rw-r--r-- 1 root root      155 2008-06-04 20:29 mysql_mailbox.cf
    -rw-r----- 1 root postfix   178 2008-05-29 11:24 mysql_relay_domains_maps.cf
    -rw-r--r-- 1 root root      104 2008-06-04 20:29 mysql_uid.cf
    -rw-r----- 1 root postfix   133 2008-05-29 11:23 mysql_virtual_alias_maps.cf
    -rw-r----- 1 root postfix   145 2008-05-27 13:24 mysql-virtual_domains.cf
    -rw-r----- 1 root postfix   196 2008-05-29 11:23 mysql_virtual_domains_maps.cf
    -rw-r----- 1 root postfix   130 2008-05-27 13:25 mysql-virtual_email2email.cf
    -rw-r----- 1 root postfix   143 2008-05-27 13:25 mysql-virtual_forwardings.cf
    -rw-r----- 1 root postfix   199 2008-05-27 13:25 mysql-virtual_mailboxes.cf
    -rw------- 1 root root       40 2008-05-27 20:14 mysql-virtual_mailboxes.cf.save
    -rw-r----- 1 root postfix   179 2008-05-29 11:24 mysql_virtual_mailbox_limit_maps.cf
    -rw-r----- 1 root postfix   130 2008-05-27 13:26 mysql-virtual_mailbox_limit_maps.cf
    -rw-r----- 1 root postfix   181 2008-05-29 11:23 mysql_virtual_mailbox_maps.cf
    -rw-r----- 1 root postfix   139 2008-05-27 13:25 mysql-virtual_transports.cf
    -rw-r--r-- 1 root root    18116 2007-10-06 02:21 postfix-files
    -rwxr-xr-x 1 root root     7121 2007-10-06 02:21 postfix-script
    -rwxr-xr-x 1 root root    22197 2007-10-06 02:21 post-install
    -rw-r--r-- 1 root root       13 2008-05-24 10:04 relay_domains
    -rw-r--r-- 1 root root    12288 2008-05-24 10:04 relay_domains.db
    -rw-r--r-- 1 root root       14 2008-05-24 10:01 relay_recipients
    -rw-r--r-- 1 root root    12288 2008-05-24 10:01 relay_recipients.db
    drwxr-xr-x 2 root root     4096 2008-05-27 13:30 sasl
    -rw-r--r-- 1 root root        0 2008-05-24 10:06 sender_access
    -rw-r--r-- 1 root root    12288 2008-05-24 10:06 sender_access.db
    -rw-r--r-- 1 root root     1635 2008-05-27 13:28 smtpd.cert
    -rw-r----- 1 root root     1675 2008-05-27 13:28 smtpd.key
    -rw-r--r-- 1 root root       33 2008-05-24 10:03 transport
    -rw-r--r-- 1 root root    12288 2008-05-24 10:03 transport.db
    -rw-r--r-- 1 root root       30 2008-05-27 11:00 virtual
    -rw-r--r-- 1 root root    12288 2008-05-27 11:05 virtual.db
    -rw-r--r-- 1 root root       41 2008-06-09 08:33 virtusertable
    -rw-r--r-- 1 root root    12288 2008-06-09 08:33 virtusertable.db
    
     
  5. topdog

    topdog New Member HowtoForge Supporter

    Code:
    makemap /etc/aliases
     

Share This Page