Can not send mail out to any outside domain

Discussion in 'Installation/Configuration' started by Txchaser, Apr 4, 2008.

  1. Txchaser

    Txchaser New Member

    I have ISP Config installed and set up. I think everything is correct but it must not be. I installed Squirrelmail, made sure all ports are open on ISP Config. checked my local ports and everything is open as far as I know but might not be set to the right port #'s maybe. I can receive e-mail from everyone. In Squirrelmail I can compose and then click send it says the message has been delivered but the recipient never gets it. This is not just with specific addresses as I have seen in the past post. This happens no matter where I am sending the e-mail to. Also there is an attachment that comes in with every e-mail no matter where its comming from. here is the attachment.

    SquirrelMail notice messages
    Category: PHP
    Message: preg_split() expects parameter 4 to be long, string given
    FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_messages.php
    LINE: 926
    Category: PHP
    Message: Invalid argument supplied for foreach()
    FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/mime.php
    LINE: 52



    Can someone help me out to figure out why mail is not sending out and why this notice message comes in with every e-mail as well. It would be greatly appreciated.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Any error messages in the mail.log file?
     
  3. Txchaser

    Txchaser New Member

    searching for log

    I have been searching for the error log. Where would this log be located?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    It's in the /var/log directory.
     
  5. Txchaser

    Txchaser New Member

    error log from past couple days

    ok think i found the right error log. Here is what it shows from the last couple of days. This is from mail.err log -- mail.info is attached


    Apr 3 09:56:22 linux postfix/postfix-script: fatal: the Postfix mail system is not running
    Apr 3 10:00:15 linux postfix/postfix-script: fatal: the Postfix mail system is not running
    Apr 3 10:00:26 linux postfix/postfix-script: fatal: the Postfix mail system is not running
    Apr 3 10:02:25 linux postfix/postfix-script: fatal: the Postfix mail system is not running
    Apr 3 10:02:39 linux postfix/postfix-script: fatal: the Postfix mail system is not running
    Apr 3 10:39:00 linux postfix/postfix-script: fatal: the Postfix mail system is not running
    Apr 3 10:54:35 linux postfix/postfix-script: fatal: the Postfix mail system is not running
    Apr 3 14:47:30 svr1 freshclam[30557]: getpatch: Can't download daily-5111.cdiff from database.clamav.net
    Apr 3 14:47:30 svr1 freshclam[30557]: getpatch: Can't download daily-5111.cdiff from database.clamav.net
    Apr 3 14:47:31 svr1 freshclam[30557]: getpatch: Can't download daily-5111.cdiff from database.clamav.net
    Apr 3 15:16:54 svr1 postfix/postmap[31520]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 15:20:00 svr1 postfix/postmap[31827]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 15:24:03 svr1 postfix/postmap[32044]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 15:41:08 svr1 postfix/postmap[311]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 15:49:28 svr1 postfix/postmap[1146]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 15:55:18 svr1 postfix/sendmail[1529]: fatal: No recipient addresses found in message header
    Apr 3 15:57:52 svr1 postfix/sendmail[1837]: fatal: No recipient addresses found in message header
    Apr 3 16:00:55 svr1 postfix/postmap[2224]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:23:22 svr1 postfix/postmap[3128]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:23:38 svr1 postfix/postmap[3475]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:25:12 svr1 postfix/postmap[3724]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:26:26 svr1 postfix/postmap[4074]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:27:39 svr1 postfix/postmap[4325]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:29:12 svr1 postfix/postmap[4620]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:33:06 svr1 postfix/postmap[5014]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:35:45 svr1 postfix/postmap[5587]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 3 16:36:11 svr1 postfix/postmap[5955]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
    Apr 4 12:19:00 svr1 freshclam[4041]: getfile: Error while reading database from database.clamav.net (IP: 65.110.48.11)
    Apr 4 12:19:00 svr1 freshclam[4041]: getpatch: Can't download daily-6585.cdiff from database.clamav.net
    Apr 4 16:19:38 svr1 freshclam[4083]: getfile: Error while reading database from database.clamav.net (IP: 65.110.48.11)
    Apr 4 16:19:38 svr1 freshclam[4083]: getpatch: Can't download daily-6590.cdiff from database.clamav.net

    Hope that these 2 will help ty for your support in this.
     

    Attached Files:

    • mail.txt
      File size:
      16.7 KB
      Views:
      218
  6. Hans

    Hans Moderator ISPConfig Developer

    One of the problem is that for any reason your Postfix MTA is not running.
    Try to start it with the command: /etc/init.d/postfix start
     
  7. Txchaser

    Txchaser New Member

    Still no luck

    sry took a while to reply I have been away. I tried starting the posfix like you had said and still no luck on sending an e-mail out to anyone. Anything else I should check?
     
  8. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /etc/postfix
    ?
     
  9. Txchaser

    Txchaser New Member

    output of ls -la /etc/postfix

    svr1:~ # ls -la /etc/postfix
    total 396
    drwxr-xr-x 3 root root 4096 Apr 11 19:12 .
    drwxr-xr-x 79 root root 12288 Apr 11 23:59 ..
    -rw-r--r-- 1 root root 11942 Nov 25 2006 LICENSE
    -rw-r--r-- 1 root root 1629 Nov 25 2006 TLS_LICENSE
    -rw-r--r-- 1 root root 17832 Nov 25 2006 access
    -rw-r--r-- 1 root root 12288 Apr 3 09:56 access.db
    -rw-r--r-- 1 root root 3606 Nov 25 2006 bounce.cf.default
    -rw-r--r-- 1 root root 11175 Nov 25 2006 canonical
    -rw-r--r-- 1 root root 12288 Apr 3 09:56 canonical.db
    -rw-r--r-- 1 root root 449 Nov 25 2006 dynamicmaps.cf
    -rw-r--r-- 1 root root 9920 Nov 25 2006 generic
    -rw-r--r-- 1 root root 16838 Nov 25 2006 header_checks
    -rw-r--r-- 1 root root 328 Apr 10 18:53 local-host-names
    -rw-r--r-- 1 root root 328 Apr 10 18:53 local-host-names~
    -rw-r--r-- 1 root root 28075 Apr 3 14:47 main.cf
    -rw-r--r-- 1 root root 27956 Apr 3 12:11 main.cf.SuSEconfig
    -rw-r--r-- 1 root root 122 Nov 25 2006 main.cf.default
    -rw-r--r-- 1 root root 27965 Apr 3 14:47 main.cf.orig
    -rw-r--r-- 1 root root 1020 Nov 25 2006 makedefs.out
    -rw-r--r-- 1 root root 4006 Apr 3 10:39 master.cf
    -rw-r--r-- 1 root root 3942 Apr 3 10:39 master.cf.2008-04-03
    -rw-r--r-- 1 root root 2255 Nov 25 2006 openssl_postfix.conf.in
    -rwxr-xr-x 1 root root 22086 Nov 25 2006 post-install
    -rw-r--r-- 1 root root 14887 Nov 25 2006 postfix-files
    -rwxr-xr-x 1 root root 6366 Nov 25 2006 postfix-script
    -rw-r--r-- 1 root root 199 Nov 25 2006 relay_ccerts
    -rw-r--r-- 1 root root 12288 Apr 3 09:56 relay_ccerts.db
    -rw-r--r-- 1 root root 6805 Nov 25 2006 relocated
    -rw-r--r-- 1 root root 12288 Apr 3 09:56 relocated.db
    -rw------- 1 root root 172 Nov 25 2006 sasl_passwd
    -rw------- 1 root root 12288 Apr 3 09:56 sasl_passwd.db
    -rw-r--r-- 1 root root 412 Nov 25 2006 sender_canonical
    -rw-r--r-- 1 root root 12288 Apr 3 09:56 sender_canonical.db
    drwxr-xr-x 2 root root 4096 Apr 3 11:59 ssl
    -rw-r--r-- 1 root root 12081 Nov 25 2006 transport
    -rw-r--r-- 1 root root 12288 Apr 3 09:56 transport.db
    -rw-r--r-- 1 root root 11984 Nov 25 2006 virtual
    -rw-r--r-- 1 root root 12288 Apr 3 09:56 virtual.db
    -rw-r--r-- 1 root root 367 Apr 10 18:53 virtusertable
    -rw-r--r-- 1 root root 12288 Apr 10 18:53 virtusertable.db
    -rw-r--r-- 1 root root 367 Apr 10 18:53 virtusertable~
    svr1:~ #
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    postmap /etc/postfix/virtusertable
    and restart Postfix.
    Can you also post the output of
    Code:
    ls -la /var/spool/postfix/etc/postfix
    ?
     
  11. Txchaser

    Txchaser New Member

    I have run the code : postmap /etc/postfix/virtusertable
    and restarted postfix. When trying to get the out put of : ls -la /var/spool/postfix/etc/postfix
    this is what I get: ls: cannot access /var/spool/postfix/etc/postfix: No such file or directory

    When going to the directory manually it is not there either no etc directory at all.
    Would it be just as easy to try a fresh install from OS all the way through?
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Nothing to worry about. I was thinking that maybe your Postfix is running chrooted, but that doesn't seem to be the case.

    Is Postfix working now, or are you still getting errors?
     

Share This Page