Baffling postfix problem - won't relay from localhost

Discussion in 'Server Operation' started by nuh, Jan 23, 2015.

  1. nuh

    nuh New Member

    Hi everyone,
    I started off on a new debian wheezy server and have been following this tutorial on how to configure the essentials:
    http://www.xenlens.com/debian-wheez...cube-spamassassin-clamav-greylist-nginx-php5/

    For the most part, it worked. I'm able to receive emails fine, but I'm unable to send any mail that isn't targeted to a hosted domain.

    My main.cf :
    I have localhost and my home IP address (it's static), I've been testing it using SWAKS (I've used other mail clients but I've ended up using this because it helps perform checks faster), and this is the result I get:
    As far as I am aware, I have:
    mynetworks = <<my static home ip address>> 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated
    in main.cf, and this shouldn't be happening?
    I'm on a trusted IP, and authentication is successful, why won't it let me send mail?
     
  2. nuh

    nuh New Member

    Finally found my answer after scratching my head for hours (yay! baldspot)

    default_transport = error
    relay_transport = error

    should be

    default_transport = smtp
    relay_transport = relay
     

Share This Page