Mails sent from webX_ and not received

Discussion in 'Installation/Configuration' started by torqhost, Sep 2, 2007.

  1. torqhost

    torqhost New Member


    I am having a problem with mail. The emails (from webmail) are sent from webX_account and not the proper alias. So I have an account, say web1_test and [email protected]. I can login to webmail using [email protected], but when I send emails they are send from [email protected].

    Also no emails are received. Doesn't matter if I send to [email protected] or [email protected].

    Any ideas?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Please correct the sender address in the webmail options.
    2) Post the errors from your mail log.
  3. torqhost

    torqhost New Member

    Changing the name helped. The error log contains this:

    Sep 2 13:01:52 shared1 postfix/postmap[32559]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory

    Apparently it doesn't know where to route the email. Shouldn't this have been configured during ISPConfig install?
  4. torqhost

    torqhost New Member

    Right now, the email bounded back, saying "Recipient address rejected: User unknown in local recipient table", so it's an aliases issue.
  5. torqhost

    torqhost New Member

    hmm, this is getting confusing for me, because:

    In ISPConfig I have a setting for virtual user file set to /etc/postfix/virtusertable
    In of posfix I have set the same path. In /etc/postfix I have like 3 files like that one virtusertable, then virtusertable.db and then virtusertable.db.db. Does ISPConfig add .db extention?
  6. till

    till Super Moderator Staff Member ISPConfig Developer


    Please have a look at the logfile /home/admispconfig/ispconfig/ispconfig.log if there are any errors.

    Are you sure that the setting in ISPConfig for the virtusertable is /etc/postfix/virtusertable and not /etc/postfix/virtusertable.db. It must be /etc/postfix/virtusertable
  7. torqhost

    torqhost New Member

    the ispconfig log has these lines (when I was creating a new user)

    02.09.2007 - 13:13:42 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 900: setquota -u web4_kusok 0 0 0 0 -a &> /dev/null
    02.09.2007 - 13:13:42 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 901: setquota -T -u web4_kusok 604800 604800 -a &> /dev/null
    02.09.2007 - 13:13:42 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.master /srv/$
    02.09.2007 - 13:13:42 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/l$
    02.09.2007 - 13:13:42 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virt$
    02.09.2007 - 13:13:44 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: WARNING: could not postmap hash:/etc/postfix/virtus$
    02.09.2007 - 13:13:44 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1249: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/$
    02.09.2007 - 13:13:44 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1911: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~

    but just a general question: should postfix have a reference to the .db file? The db files should be binary, right? Right now, I have a .db file containing bin data and without extention containing string data. Where should postfix conf path point?
  8. jmroth

    jmroth ISPConfig Developer ISPConfig Developer

    Ehm.. yes and no. ISPConfig calls postmap which creates the .db file.
    What is /etc/postfix/virtus$ :confused:

    To be on the safe side I would first delete all virtusertable DB files: rm /etc/postfix/virtusertable.*
    Then make sure ISPConfig contains /etc/postfix/virtusertable in Management->Settings->Email.
    Then make ISPConfig recreate the config.
  9. torqhost

    torqhost New Member

    Ok, but will I be safe if I delete all those files (virtus*)? And then re-save the file in ISPConfig management section? Will it reload postfix and perform all necessary changes, or will it break something?
  10. jmroth

    jmroth ISPConfig Developer ISPConfig Developer

    I guess that should work

Share This Page