Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs

Discussion in 'HOWTO-Related Questions' started by ruskicar, Jan 6, 2006.

  1. ruskicar

    ruskicar New Member

    Well...I have tried this (to replace domain lintvern.net in mysql with email.lintvern.net), and now when I send e-mail to [email protected] i get this message:

    Code:
    Jan  7 22:01:05 lintvern postfix/smtpd[14725]: connect from mta2.siol.net[193.189.160.133]
    
    Jan  7 22:01:06 lintvern postfix/smtpd[14725]: NOQUEUE: reject: RCPT from mta2.siol.net[193.189.160.133]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mta2.siol.net>
    
    Jan  7 22:01:06 lintvern postfix/smtpd[14725]: disconnect from mta2.siol.net[193.189.160.133]
    Relay access denied...
    Any suggestions?

    Regards,Drejc
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Please put lintvern.net into the mydestination line in /etc/postfix/main.cf (e.g.
    Code:
    mydestination = server1.example.com, localhost, localhost.localdomain, lintvern.net
    ) and restart Postfix.
     
  3. ruskicar

    ruskicar New Member

    Sorry for not being on forum for such a long time :).

    Well...I have repaired this whole problem somehow else, so everything works now.

    But now I have some other question :):
    I would like postfix to automatically delete emails which have ***SPAM*** in it's subject. Can this be done by postfix or should I use some other filtering method?

    Regards,Drejc
     
  4. falko

    falko Super Moderator ISPConfig Developer

    You can do it with amavisd_new (which is installed on http://www.howtoforge.com/virtual_postfix_mysql_quota_courier_p3 ). Have a look at the amavisd_new documentation.
    Something like
    Code:
    $final_spam_destiny       = D_REJECT;
    should work.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    It loks like there where problems with your amavis setup. Please check the mysql username, password, database name and database host in the amavis configuration. You can also check the mysql logs for errors.
     
  6. hafizh_nix

    hafizh_nix New Member

    Fetchmail

    Hii all,

    I have problem with my postfix+fetchmail. How to fetchmail can recognize postfix mail_base '/home/vmail'?

    Thanks b 4 :D
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Do you use virtual email users?
     

Share This Page