Forward Only Email Server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have a custom domain (I'll use the real domains cause I'm desperate at this point :) ) www.grantorino.io, and I want to forward all email addresses sent to yehiasalam@grantorino.io to yehia.asalam@gmail.com. I followed the logical steps but I can't seem to get it right. This is what I did so far:



  1. Map the MX record to the grantorino server, dig a dig command shows that the mx have no problems, and that mail.grantorino.io maps correctly to my server.

  2. Next step is allowing port 25 on the firewall settings, so it's now open to accept TCP connections from port 25Webmin Firewall Settings


  3. Make Sendmail forward any mails from yehiasalam@grantorino.io to yehia.asalam@gmail.com. I started with allowing the virtuser feature, an excerpt from sendmail.mc



    FEATURE('virtusertable', 'hash -o /etc/mail/virtusertable.db')dnl




  4. The virtusertable I added



    yehiasalam@grantorino.io yehia.asalam@gmail.com



and compiled using makemap hasg virtusertable.db < virtusertable



  1. Also in the access file I added

Connect:grantorino.io RELAY



and compiled using makemap hash access < access.db




  1. Finally in the sendmail.c I changed the DEAMON_OPTIONS line to



    DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl



The problem right now is that I'm not getting any emails forwarded. This is the tail of maillog, after a couple of minutes of sending an email to yehiasalam@grantorino.io. As you can see I'm not getting any activity at all. enter image description here










share|improve this question
























  • It doesn't appear the server is receiving any messages. Try using telnet to diagnose. SMTP is a conversational protocol easy to emulate using a terminal session. For GMail, you likely want to setup an authenticated outgoing connection.

    – BillThor
    Apr 23 '14 at 1:21












  • You MUST use an authenticated connection to Gmail. Otherwise your forwarding will be seen as forging emails from domains that support DMARC or the older SPF. In turn this will destroy any reputation associated with your IP address, and Gmail is likely to refuse any further emails from you regardless of possible authenticity.

    – roaima
    Mar 9 at 10:31


















1















I have a custom domain (I'll use the real domains cause I'm desperate at this point :) ) www.grantorino.io, and I want to forward all email addresses sent to yehiasalam@grantorino.io to yehia.asalam@gmail.com. I followed the logical steps but I can't seem to get it right. This is what I did so far:



  1. Map the MX record to the grantorino server, dig a dig command shows that the mx have no problems, and that mail.grantorino.io maps correctly to my server.

  2. Next step is allowing port 25 on the firewall settings, so it's now open to accept TCP connections from port 25Webmin Firewall Settings


  3. Make Sendmail forward any mails from yehiasalam@grantorino.io to yehia.asalam@gmail.com. I started with allowing the virtuser feature, an excerpt from sendmail.mc



    FEATURE('virtusertable', 'hash -o /etc/mail/virtusertable.db')dnl




  4. The virtusertable I added



    yehiasalam@grantorino.io yehia.asalam@gmail.com



and compiled using makemap hasg virtusertable.db < virtusertable



  1. Also in the access file I added

Connect:grantorino.io RELAY



and compiled using makemap hash access < access.db




  1. Finally in the sendmail.c I changed the DEAMON_OPTIONS line to



    DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl



The problem right now is that I'm not getting any emails forwarded. This is the tail of maillog, after a couple of minutes of sending an email to yehiasalam@grantorino.io. As you can see I'm not getting any activity at all. enter image description here










share|improve this question
























  • It doesn't appear the server is receiving any messages. Try using telnet to diagnose. SMTP is a conversational protocol easy to emulate using a terminal session. For GMail, you likely want to setup an authenticated outgoing connection.

    – BillThor
    Apr 23 '14 at 1:21












  • You MUST use an authenticated connection to Gmail. Otherwise your forwarding will be seen as forging emails from domains that support DMARC or the older SPF. In turn this will destroy any reputation associated with your IP address, and Gmail is likely to refuse any further emails from you regardless of possible authenticity.

    – roaima
    Mar 9 at 10:31














1












1








1








I have a custom domain (I'll use the real domains cause I'm desperate at this point :) ) www.grantorino.io, and I want to forward all email addresses sent to yehiasalam@grantorino.io to yehia.asalam@gmail.com. I followed the logical steps but I can't seem to get it right. This is what I did so far:



  1. Map the MX record to the grantorino server, dig a dig command shows that the mx have no problems, and that mail.grantorino.io maps correctly to my server.

  2. Next step is allowing port 25 on the firewall settings, so it's now open to accept TCP connections from port 25Webmin Firewall Settings


  3. Make Sendmail forward any mails from yehiasalam@grantorino.io to yehia.asalam@gmail.com. I started with allowing the virtuser feature, an excerpt from sendmail.mc



    FEATURE('virtusertable', 'hash -o /etc/mail/virtusertable.db')dnl




  4. The virtusertable I added



    yehiasalam@grantorino.io yehia.asalam@gmail.com



and compiled using makemap hasg virtusertable.db < virtusertable



  1. Also in the access file I added

Connect:grantorino.io RELAY



and compiled using makemap hash access < access.db




  1. Finally in the sendmail.c I changed the DEAMON_OPTIONS line to



    DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl



The problem right now is that I'm not getting any emails forwarded. This is the tail of maillog, after a couple of minutes of sending an email to yehiasalam@grantorino.io. As you can see I'm not getting any activity at all. enter image description here










share|improve this question
















I have a custom domain (I'll use the real domains cause I'm desperate at this point :) ) www.grantorino.io, and I want to forward all email addresses sent to yehiasalam@grantorino.io to yehia.asalam@gmail.com. I followed the logical steps but I can't seem to get it right. This is what I did so far:



  1. Map the MX record to the grantorino server, dig a dig command shows that the mx have no problems, and that mail.grantorino.io maps correctly to my server.

  2. Next step is allowing port 25 on the firewall settings, so it's now open to accept TCP connections from port 25Webmin Firewall Settings


  3. Make Sendmail forward any mails from yehiasalam@grantorino.io to yehia.asalam@gmail.com. I started with allowing the virtuser feature, an excerpt from sendmail.mc



    FEATURE('virtusertable', 'hash -o /etc/mail/virtusertable.db')dnl




  4. The virtusertable I added



    yehiasalam@grantorino.io yehia.asalam@gmail.com



and compiled using makemap hasg virtusertable.db < virtusertable



  1. Also in the access file I added

Connect:grantorino.io RELAY



and compiled using makemap hash access < access.db




  1. Finally in the sendmail.c I changed the DEAMON_OPTIONS line to



    DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl



The problem right now is that I'm not getting any emails forwarded. This is the tail of maillog, after a couple of minutes of sending an email to yehiasalam@grantorino.io. As you can see I'm not getting any activity at all. enter image description here







centos sendmail






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 9:16









Rui F Ribeiro

41.9k1483142




41.9k1483142










asked Apr 22 '14 at 22:50









Yehia A.SalamYehia A.Salam

1112




1112












  • It doesn't appear the server is receiving any messages. Try using telnet to diagnose. SMTP is a conversational protocol easy to emulate using a terminal session. For GMail, you likely want to setup an authenticated outgoing connection.

    – BillThor
    Apr 23 '14 at 1:21












  • You MUST use an authenticated connection to Gmail. Otherwise your forwarding will be seen as forging emails from domains that support DMARC or the older SPF. In turn this will destroy any reputation associated with your IP address, and Gmail is likely to refuse any further emails from you regardless of possible authenticity.

    – roaima
    Mar 9 at 10:31


















  • It doesn't appear the server is receiving any messages. Try using telnet to diagnose. SMTP is a conversational protocol easy to emulate using a terminal session. For GMail, you likely want to setup an authenticated outgoing connection.

    – BillThor
    Apr 23 '14 at 1:21












  • You MUST use an authenticated connection to Gmail. Otherwise your forwarding will be seen as forging emails from domains that support DMARC or the older SPF. In turn this will destroy any reputation associated with your IP address, and Gmail is likely to refuse any further emails from you regardless of possible authenticity.

    – roaima
    Mar 9 at 10:31

















It doesn't appear the server is receiving any messages. Try using telnet to diagnose. SMTP is a conversational protocol easy to emulate using a terminal session. For GMail, you likely want to setup an authenticated outgoing connection.

– BillThor
Apr 23 '14 at 1:21






It doesn't appear the server is receiving any messages. Try using telnet to diagnose. SMTP is a conversational protocol easy to emulate using a terminal session. For GMail, you likely want to setup an authenticated outgoing connection.

– BillThor
Apr 23 '14 at 1:21














You MUST use an authenticated connection to Gmail. Otherwise your forwarding will be seen as forging emails from domains that support DMARC or the older SPF. In turn this will destroy any reputation associated with your IP address, and Gmail is likely to refuse any further emails from you regardless of possible authenticity.

– roaima
Mar 9 at 10:31






You MUST use an authenticated connection to Gmail. Otherwise your forwarding will be seen as forging emails from domains that support DMARC or the older SPF. In turn this will destroy any reputation associated with your IP address, and Gmail is likely to refuse any further emails from you regardless of possible authenticity.

– roaima
Mar 9 at 10:31











1 Answer
1






active

oldest

votes


















0














The .io top level domain seems to tell me the entire grantorino.io domain does not exist in the public DNS:



$ dig grantorino.io SOA
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 17264
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; AUTHORITY SECTION:
io. 823 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900

$ dig grantorino.io MX
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24001
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; AUTHORITY SECTION:
io. 292 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900


Also, a reverse DNS query indicates there is no PTR record either, and that would cause your system to fail one of the oldest anti-spam tests:



$ dig -x 162.242.170.86
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58070
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; AUTHORITY SECTION:
170.242.162.in-addr.arpa. 300 IN SOA ns.rackspace.com. hostmaster.rackspace.com. 1543432701 3600 300 1814400 300


No wonder your domain cannot receive email: when viewed from the outside, it does not even seem to exist!






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f126034%2fforward-only-email-server%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The .io top level domain seems to tell me the entire grantorino.io domain does not exist in the public DNS:



    $ dig grantorino.io SOA
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 17264
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; AUTHORITY SECTION:
    io. 823 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900

    $ dig grantorino.io MX
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24001
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; AUTHORITY SECTION:
    io. 292 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900


    Also, a reverse DNS query indicates there is no PTR record either, and that would cause your system to fail one of the oldest anti-spam tests:



    $ dig -x 162.242.170.86
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58070
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; AUTHORITY SECTION:
    170.242.162.in-addr.arpa. 300 IN SOA ns.rackspace.com. hostmaster.rackspace.com. 1543432701 3600 300 1814400 300


    No wonder your domain cannot receive email: when viewed from the outside, it does not even seem to exist!






    share|improve this answer



























      0














      The .io top level domain seems to tell me the entire grantorino.io domain does not exist in the public DNS:



      $ dig grantorino.io SOA
      ;; Got answer:
      ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 17264
      ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

      ;; OPT PSEUDOSECTION:
      ; EDNS: version: 0, flags:; udp: 4096
      ;; AUTHORITY SECTION:
      io. 823 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900

      $ dig grantorino.io MX
      ;; Got answer:
      ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24001
      ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

      ;; OPT PSEUDOSECTION:
      ; EDNS: version: 0, flags:; udp: 4096
      ;; AUTHORITY SECTION:
      io. 292 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900


      Also, a reverse DNS query indicates there is no PTR record either, and that would cause your system to fail one of the oldest anti-spam tests:



      $ dig -x 162.242.170.86
      ;; Got answer:
      ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58070
      ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

      ;; OPT PSEUDOSECTION:
      ; EDNS: version: 0, flags:; udp: 4096
      ;; AUTHORITY SECTION:
      170.242.162.in-addr.arpa. 300 IN SOA ns.rackspace.com. hostmaster.rackspace.com. 1543432701 3600 300 1814400 300


      No wonder your domain cannot receive email: when viewed from the outside, it does not even seem to exist!






      share|improve this answer

























        0












        0








        0







        The .io top level domain seems to tell me the entire grantorino.io domain does not exist in the public DNS:



        $ dig grantorino.io SOA
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 17264
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 4096
        ;; AUTHORITY SECTION:
        io. 823 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900

        $ dig grantorino.io MX
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24001
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 4096
        ;; AUTHORITY SECTION:
        io. 292 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900


        Also, a reverse DNS query indicates there is no PTR record either, and that would cause your system to fail one of the oldest anti-spam tests:



        $ dig -x 162.242.170.86
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58070
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 4096
        ;; AUTHORITY SECTION:
        170.242.162.in-addr.arpa. 300 IN SOA ns.rackspace.com. hostmaster.rackspace.com. 1543432701 3600 300 1814400 300


        No wonder your domain cannot receive email: when viewed from the outside, it does not even seem to exist!






        share|improve this answer













        The .io top level domain seems to tell me the entire grantorino.io domain does not exist in the public DNS:



        $ dig grantorino.io SOA
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 17264
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 4096
        ;; AUTHORITY SECTION:
        io. 823 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900

        $ dig grantorino.io MX
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24001
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 4096
        ;; AUTHORITY SECTION:
        io. 292 IN SOA a0.nic.io. noc.afilias-nst.info. 1497562067 10800 3600 2764800 900


        Also, a reverse DNS query indicates there is no PTR record either, and that would cause your system to fail one of the oldest anti-spam tests:



        $ dig -x 162.242.170.86
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58070
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 4096
        ;; AUTHORITY SECTION:
        170.242.162.in-addr.arpa. 300 IN SOA ns.rackspace.com. hostmaster.rackspace.com. 1543432701 3600 300 1814400 300


        No wonder your domain cannot receive email: when viewed from the outside, it does not even seem to exist!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 9 at 10:22









        telcoMtelcoM

        20.6k12452




        20.6k12452



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f126034%2fforward-only-email-server%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)