How to disable sending mail from server

Discussion in 'Installation/Configuration' started by nvn, Nov 2, 2006.

  1. nvn

    nvn New Member

    Hi...

    Is it possible to disable sending mail from the server ?

    I have no use of it, and have problems with spam-relay.

    But i still need to be able to recive mail's to my users. But they use they ISP's SMTP to send mail.

    I have a SUSE 10 perfect setup...


    thanks for any help :)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Are you sure the spam is send by one of your users and not a form script?

    If yes, you can try to change the variable smtpd_recipient_restrictions in your main.cf file to:

    smtpd_recipient_restrictions = permit_mynetworks,check_relay_domains

    This will allow email sending only from the network configured in the variable mynetworks. This is normally set to 127.0.0.0/8 which means sending is only allowed from localhost.
     
  3. nvn

    nvn New Member

  4. falko

    falko Super Moderator ISPConfig Developer

  5. nvn

    nvn New Member

    postcat -q /var/spool/postfix/maildrop/A672A6F41BF


    Is it possible to set authentification for localhost ?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. Comment out the mynetworks line in the main.cf and restart postfix. But I dont think that this is a good idea as this will affect all sytem emails and will most likely break your server.
     
  7. nvn

    nvn New Member

    I don't have "mynetworks = " ?

    Only a "mynetworks_style" ?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then this might be your problem. Please add:

    mynetworks = 127.0.0.0/8

    to your main.cf file and restart postfix.
     

Share This Page