Results 1 to 10 of 10

Thread: Unable to redirect mail from outside domain to outside domain

Hybrid View

  1. #1
    Join Date
    Nov 2016
    Beans
    21

    Question Unable to redirect mail from outside domain to outside domain

    I have a smart host working in a MacosX 10.9.5 with Server App 3 (who uses postfix mail_version = 2.9.4), and i have notice that i am just able to redirect mail inside of my smart host (Outlook, Mail app and roundcubemail installed in this server), for example i am just able to send mails from user1@domainX.pt to user2@domainX.pt where i have a redirection to user1@domianY.pt, if i try to send mail from user1@domainY.pt to user1@domainX.pt who is redirecting mail to user2@domainY.pt, i will get this message at mail.log:

    Code:
    Dec  6 14:37:12 remote.domainX.pt postfix/smtp[28504]: 0B8BD259F57: to=<user2@domainY.pt>, orig_to=<user1@remote.domainX.pt>, relay=mail.domainX.pt[]:25, delay=0.1, delays=0/0.01/0.07/0.02, dsn=5.0.0, status=bounced (host mail.domainX.pt[] said: 550-Verification failed for <Xserver@remote.domainX.pt> 550-No Such User Here 550 Sender verify failed (in reply to RCPT TO command))
    From what it seems instead of using orig_to=<user1@domainX.pt> i am getting orig_to=<user1@remote.domainX.pt>, and my remote mail server will give that response. I am just using domainX.pt instead of remote.domainX.pt that i am not using at all.
    My mail server remote.domainX.pt is connected to my remote mail server mail.domainX.pt.

    Anyone knows how can i solve this?

  2. #2
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Unable to redirect mail from outside domain to outside domain

    It looks like you have sender verification turned on. When I was running my own server a few years ago, I liked the idea, but found that it was usually better to use other methods of filtering spam.

    Some people believe that it's a bad idea to do address verification. Have a look here: http://www.circleid.com/posts/sender..._verification/
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  3. #3
    Join Date
    Nov 2016
    Beans
    21

    Re: Unable to redirect mail from outside domain to outside domain

    I dont have a field for sender verification, could you please check my main.cf?

    http://pastebin.com/d9hZaTwp

  4. #4
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Unable to redirect mail from outside domain to outside domain

    Quote Originally Posted by fabioescabrita View Post
    I dont have a field for sender verification, could you please check my main.cf?

    http://pastebin.com/d9hZaTwp
    I had a quick look at your main.cf file. Your setup is a bit different to what I used to use with Postfix, and I suspect that my initial thoughts about why verification failed appears to have failed might be mistaken. I will happily defer to someone who might have a more useful suggestion.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  5. #5
    Join Date
    Nov 2016
    Beans
    21

    Re: Unable to redirect mail from outside domain to outside domain

    Thanks lisati!

    I didnt say it but, i have used getmail to receive mail and send locally through sendmail to postfix.

    I dont know if could be from that =/ I have used this arguments, not sure if is messing or if it could help to solve this:

    Code:
    [destination]
    type = MDA_external
    path = /usr/sbin/sendmail
    arguments = ("-bm", "user1")
    unixfrom = true
    I already tried to use user1@domainX.pt instead of user1, but i am unable to receive mail in my local accounts with that syntax =/


  6. #6
    Join Date
    Nov 2016
    Beans
    21

    Re: Unable to redirect mail from outside domain to outside domain

    After some tests at sendmail through getmail, i also notice that i could only use local user account names as destination (Example1) or use full email name only with @remote.domainX.pt and not @domainX.pt as i was expecting.

    Example 1:

    HTML Code:
    [destination]
    type = MDA_external
    path = /usr/sbin/sendmail
    arguments = ("-bm", "test")
    unixfrom = true
    Example 2:

    HTML Code:
    [destination]
    type = MDA_external
    path = /usr/sbin/sendmail
    arguments = ("-bm", "test@remote.domainX.pt")
    unixfrom = true
    So i am trying to figure out how can i solve this with postfix, to handle just @domainX.pt to receive mail instead of @remote.domainX.pt but i am not seeing a way to fix this.

    I have also tested with virtual_alias_maps instead of aliases from alias_maps but with that there is no domain associated to my local accounts, it can only be used to local delivery.
    Last edited by fabioescabrita; December 9th, 2016 at 11:53 AM.

  7. #7
    Join Date
    Nov 2016
    Beans
    21

    Re: Unable to redirect mail from outside domain to outside domain

    After trying virtual_alias_maps instead of alias_maps, i notice that if i try to send from an outside domain to redirect locally and send again to another outside domain, i would send like this:

    Dec 7 16:23:06 remote.domainX.pt postfix/smtp[94531]: B85A0275128: to=<user2@domainY.pt>, orig_to=<user1>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.4, delays=0.02/0/0/5.4, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 23A3427514A)

    It removes all the domain part from user1@domainX.pt =/ and send it locally to nowhere. I cannot even see this message at mailq, in my smart host.

  8. #8
    Join Date
    Nov 2016
    Beans
    21

    Re: Unable to redirect mail from outside domain to outside domain

    Well i was able to fix @remote.domainX.pt to @domainX.pt but through virtual_alias_maps but its relaying locally and not to my remote mail server, at least i have it pointed to that server as well as with sasl authentications per user in main.cf:

    Dec 9 12:52:06 remote.domainX.pt postfix/smtp[4026]: 9C4B029F3E0: to=<test@domainY.pt>, orig_to=<test@domainX.pt>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.5, delays=0.02/0/0/5.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1723529F40A)
    Last edited by fabioescabrita; December 9th, 2016 at 03:47 PM.

Tags for this Thread

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
  •