Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: [SOLVED] multiple accounts on smtp relay

  1. #1
    parraccourci is offline Member
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    Question [SOLVED] multiple accounts on smtp relay

    Hello,

    I've followed the instructions given by:
    Outgoing SMTP Authentication - Zimbra :: Wiki

    and it work well... At least for one account.

    I created several accounts on my zimbra server each corresponding to an accounts given by my ISP.

    Each account has a different username and passord (on both zimbra end ISP server). So I've written these lines into
    "/opt/zimbra/conf/relay_password" :
    Code:
    isp.mail.server user1@isp.mail.server:PASSWORD1
    isp.mail.server user2@isp.mail.server:PASSWORD2
    I get the following message (cat /var/log/zimbra.log | grep smtp) when I try to send an e-mail with another account (e.g. user2@isp.mail.server) than the first one (user1@isp.mail.server):
    Code:
    : Sender address rejected: not owned by user user1@isp.mail.server (in reply to RCPT TO command)
    How could I setup zimbra/postfix to use the same username/password when sending mail via isp.mail.server than the one used to get mail from pop.isp.mail.server OR the same username/password than the zimbra user account?


    PS: excuse my poor english, i'm a french guy !
    Last edited by parraccourci; 07-20-2008 at 01:54 AM.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,569
    Rep Power
    57

    Default

    You only need to enter the details for one account when you relay. That allows you to send mail via your ISPs mail server instead of sending it directly, it's meant to get around any problems you may have by being on a blacklist. So, you don't need to enter the SMTP relay authentication details more than once.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    parraccourci is offline Member
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    Default

    I don't know what i did, but i lost my first post! Here it is:
    Hello,

    I've followed the instructions given by:
    Outgoing SMTP Authentication - Zimbra :: Wiki

    and it work well... At least for one account.

    I created several accounts on my zimbra server each corresponding to an accounts given by my ISP.

    Each account has a different username and passord (on both zimbra end ISP server). So I've written these lines into
    "/opt/zimbra/conf/relay_password" :
    Code:
    isp.mail.server user1@isp.mail.server:PASSWORD1
    isp.mail.server user2@isp.mail.server:PASSWORD2
    I get the following message (cat /var/log/zimbra.log | grep smtp) when I try to send an e-mail with another account (e.g. user2@isp.mail.server) than the first one (user1@isp.mail.server):
    Code:
    < user2@isp.mail.server>: Sender address rejected: not owned by user user1@isp.mail.server (in reply to RCPT TO command)
    How could I setup zimbra/postfix to use the same username/password when sending mail via isp.mail.server than the one used to get mail from pop.isp.mail.server OR the same username/password than the zimbra user account?


    PS: excuse my poor english, i'm a french guy !



    And here is my answer: th phoenix

    Yes, I got that!

    The problem is, when i try to send and email from " user2@isp.mail.server " and using:
    Code:
    user1@isp.mail.server:PASSWORD1
    As user/pass i get this error message:
    Code:
    < user2@isp.mail.server >: Sender address rejected: not owned by user user1@isp.mail.server (in reply to RCPT TO command )
    That's why i need to setup multiple user/pass for the same relay.
    Last edited by parraccourci; 07-20-2008 at 01:57 AM.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,569
    Rep Power
    57

    Default

    Quote Originally Posted by parraccourci View Post
    I don't know what i did, but i lost my first post! Here it is:
    It didn't get lost it was just moderated as you're a new user.

    Quote Originally Posted by parraccourci View Post
    And here is my answer: th phoenix

    Yes, I got that!

    The problem is, when i try to send and email from " user2@isp.mail.server " and using:
    Code:
    user1@isp.mail.server:PASSWORD1
    As user/pass i get this error message:
    Code:
    < user2@isp.mail.server >: Sender address rejected: not owned by user user1@isp.mail.server (in reply to RCPT TO command )
    That's why i need to setup multiple user/pass for the same relay.
    No, you don't need to set-up multiple accounts like that.

    If you want to send email with different sender and return address then look at the user preferences for the Accounts/Persona feature. There are posts in the forums (and a help system in Zimbra) that describe this feature.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    parraccourci is offline Member
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    Default

    I'll try this!
    Thank you :-)

  6. #6
    parraccourci is offline Member
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    Unhappy

    I think that I was not clear enough.

    Here is the current situation:

    Several users have an email account at our ISP:

    1) john who's informations are the following:
    Code:
    e-mail : john@isp_server.com
    pop : pop.isp_server.com
    smtp: smtp.isp_server.com
    username (for pop and smtp) : john@isp_server.com
    password (for pop and smtp) : JOHN_S_PASSWORD
    ssl : no
    2) Matt who's informations are the following:
    Code:
    e-mail : matt@isp_server.com
    pop : pop.isp_server.com
    smtp: smtp.isp_server.com
    username (for pop and smtp) : matt@isp_server.com
    password (for pop and smtp) : MATT_S_PASSWORD
    ssl : no
    3) ...

    Currently, each user has a pc with outlook configured to work with these accounts.

    What i want is to move all these accounts on a zimbra server and be able to use the webmail interface.

    so I created:

    1) the user : "john@isp_server.com" with "JOHN_S_PASSWORD" as password.
    And i configured zimbra to get john's mail from the ISP server (into User preferences -> accounts) by creating a new external pop account for john (using pop.isp_server.com)

    2) I did the same thing for Matt and for the other users.

    To allow john and matt to send mail using their ISP account, I followed the instructions given by:
    Outgoing SMTP Authentication - Zimbra :: Wiki

    So my "/opt/zimbra/conf/relay_password" file looks like this:
    Code:
    smtp.isp_server.com john@isp_server.com:JOHN_S_PASSWORD
    John can now send AND receive mail.

    But when Matt tries to send an e-mail I get the following message into the log:
    Code:
    Jul 20 00:25:51 server postfix/smtp[30134]: 5F5C215F2F0: to=< someone@somewhere.com>, relay=smtp.isp_server.com [111.222.333.444]:25, delay=0.73, delays=0.02/0.03/0.6/0.08, dsn=5.7.1, status=bounced (host smtp.isp_server.com[11.222.333.444] said: 553 5.7.1 < matt@isp_server.com>: Sender address rejected: not owned by user john@isp_server.com (in reply to RCPT TO command))
    What should I do?
    Why can't we configure external SMTP accounts into : User preferences -> accounts ?

  7. #7
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,569
    Rep Power
    57

    Default

    Quote Originally Posted by parraccourci View Post
    I think that I was not clear enough.
    You were perfectly clear and I understand what you're asking. You do NOT need to create multiple accounts to authenticate against your ISPs server to send mail, use the persona feature and if you need to send using different reply to and senders then you will also need to set the "Allow sending email from any address" in the Admin UI/COS/Preferences tab.

    Don't forget, a relay is only if you have problems with being on a blacklist otherwise you should send mail directly.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    parraccourci is offline Member
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    Default

    I configured everything as you said but I still have one problem.

    My ISP only allows email to be sent with the good email/useraccount/password combination.
    (one combination per user account)

    It is only possible to configure ONE user/account for each relay into /opt/zimbra/conf/relay_password.

    So if two users are using THE SAME RELAY with DIFFERENT EMAILS but SAME USER/PASS, then when one of them try to send and email with the account that is NOT set into /opt/zimbra/conf/relay_password, postfix wil use the other account's user/pass and my ISP will not accept the email saying that:

    Code:
    host smtp.isp_server.com[111.222.33.444] said: 553
        5.7.1 < account_NOT_IN_relay_password@isp_server.com>: Sender address rejected: not owned by user
        account_IN_relay_password@isp_server.com (in reply to RCPT TO command)

    It is unlike if I could send email through my ISP using the same USER/PASS for each email adress!
    => EACH email adress has its OWN username and password (to send mail via smtp) they CANNOT share username/password with other emails!!!
    Last edited by parraccourci; 07-20-2008 at 09:08 AM.

  9. #9
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,569
    Rep Power
    57

    Default

    Well, if they have that restriction there's not much you can do about it. There isn't currently a feature in Zimbra to define a relay for multiple accounts, search bugzilla for that feature request (I think there's already one there) and vote on it.

    Why don't you send the mail directly rather than using a relay?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    parraccourci is offline Member
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    Default

    because I've a dynamic ip (the ip I get appears to be on a blacklist).

    Being able to add SMTP external accounts for each users would be great!
    This is the last thing missing according to me. I'll wait for that feature.

    Meanwhile I'm going to vote for that project!
    Thank you very much for your help.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple Mail Accounts, Folders
    By skwdenyer in forum Users
    Replies: 12
    Last Post: 12-01-2013, 08:52 PM
  2. SMTP Relay
    By adarsh in forum Administrators
    Replies: 4
    Last Post: 11-11-2010, 04:36 AM
  3. Exchange Server 2003 SMTP
    By jschwartz73 in forum General Questions
    Replies: 8
    Last Post: 04-07-2008, 01:56 AM
  4. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  5. Open Relay Help & Telnet Security Issue
    By OfMacAndMen in forum Installation
    Replies: 17
    Last Post: 07-10-2007, 07:51 PM

Posting Permissions

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