Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 79

Thread: My server is sending spam

  1. #31
    Join Date
    Feb 2010
    Location
    U.K.
    Beans
    782
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: My server is sending spam

    If they have blocked inbound port 25 connections to you - then yes, that would explain it.

    Not very helpful as it means you can't test your new configuration properly

    This may not be helping either:
    Code:
    smtpd_client_restrictions = permit_mynetworks, reject
    That means only clients in the 79.161.88.51/24, 127.0.0.1/8 ranges can use the server to send. Is that what you need?
    Last edited by cryptotheslow; November 18th, 2012 at 01:49 AM.

  2. #32
    Join Date
    Sep 2008
    Beans
    193
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: My server is sending spam

    hmmm. I need to give them a call and open it up again. I will post back here once its open

  3. #33
    Join Date
    Feb 2010
    Location
    U.K.
    Beans
    782
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: My server is sending spam

    If they are being awkward about opening it up again, you could suggest that you run postfix on an alternative port temporarily whilst you make sure the config is secure.

    e.g. you could run the postfix SMTP service on port 25250 and use telnet to make sure it is not acting as an open relay. Once you are happy with that, put it back on port 25 and make sure it will still correctly receive mail for your domain and allow sending by your expected clients.

    Moving it off port 25 will pretty much stop any spammers from finding and using it whilst you test.

  4. #34
    Join Date
    Sep 2008
    Beans
    193
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: My server is sending spam

    How would I go about temporary moving it to another port ?

  5. #35
    Join Date
    Feb 2010
    Location
    U.K.
    Beans
    782
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: My server is sending spam

    In file /etc/postfix/master.cf

    Comment out or change this line:
    Code:
    smtp    inet    n       -       -       -       -       smtpd -o
    to
    Code:
    25250    inet    n       -       -       -       -       smtpd -o
    Restart postfix and smtpd should now be listening on port 25250

  6. #36
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: My server is sending spam

    Quote Originally Posted by AvengerX9 View Post
    Update
    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    .........
    mynetworks = 79.161.88.51/24, 127.0.0.1/8
    .........
    If your server is directly connected to the Internet with a valid External IP address then that is (almost) valid, if your server is behind a NAT Firewall with Port Forwarding then that should be the Internal IP range.

    I also seriously doubt that are using 255 IP addresses in that range.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  7. #37
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: My server is sending spam

    Thread moved to Server Platforms.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  8. #38
    Join Date
    Sep 2008
    Beans
    193
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: My server is sending spam

    I tried that, but I get connection refused. Do I have to add it into my iptables too ?

    http://mxtoolbox.com/SuperTool.aspx?...truckstop24.no

  9. #39
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: My server is sending spam

    May I ask a broader question? Who uses this server? Are you supporting multiple domains and multiple clients, or just one domain? I'm not a Postfix user, but I'm certain there is a way to configure it to accept only mail intended for your domain and reject everything else. That's what you want to have. Mail for you@example.com is accepted and mail for someone@somewhere.com is rejected.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  10. #40
    Join Date
    Sep 2008
    Beans
    193
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: My server is sending spam

    I just need my website to send out mail and to receive mails for that domain.

    I have one website hosted there and I'm the only user

Page 4 of 8 FirstFirst ... 23456 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •