Question about sending emails.

Discussion in 'Installation/Configuration' started by m33ts4k0z, Jun 12, 2013.

  1. m33ts4k0z

    m33ts4k0z New Member

    Hello,

    I'm on Debian Wheezy and I've now managed to be able to receive emails and I'm also able to send emails using gmail as SMTP relay. However I'm not able to send emails directly through my debian machine. I know my ISP blocks the outgoing SMTP port but I wonder what do I need to do in order to be able to send emails from my domain?

    I've read many guides here and on google about adding the submission port on postfix but following the perfect server debian wheezy with apache2, I already have the submission port entry inside master.cf. Infact that file is untouched apart from removing the comments as instructed in the guide. Am I supposed to add my domain with some port suffix somewhere as well?

    I'm using postFix and dovecot.

    My router also has all entries for allowing port 25,465 and 587 both in and out.

    Here are the errors I get when I try to send an email without relayhost:

    Code:
    Jun 12 10:28:25 techcity postfix/smtp[13048]: connect to alt2.gmail-smtp-in.l.google.com[74.125.142.26]:25: No route to host
    Jun 12 10:28:26 techcity postfix/smtp[13048]: connect to alt3.gmail-smtp-in.l.google.com[74.125.140.26]:25: No route to host
    Jun 12 10:28:27 techcity postfix/smtp[13048]: connect to alt4.gmail-smtp-in.l.google.com[173.194.74.26]:25: No route to host
    Any suggestions?

    Thanks in advance.
     
    Last edited: Jun 12, 2013
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You need a external relay server. This can either be the smtp server of your ISP, gmail or you rent a virtual server in a datacenter and setup postfix for mail relaying there which accepts outgoing emails from your internal server on the submission port.
     
  3. m33ts4k0z

    m33ts4k0z New Member

    Thanks for your answer,

    I'm able to send emails using gmail as relayhost and works great. However I wonder if I am able somehow to change the email address that is showing on the recipient.

    I suppose our domain name host is able to give me their SMTP server so I can use them as a relayhost. Is that the best (and only) way to do it?
     

Share This Page