Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-19-2008, 03:44 PM
Member
 
Posts: 11
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..
Reply With Quote
  #2 (permalink)  
Old 07-19-2008, 11:56 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
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
Reply With Quote
  #3 (permalink)  
Old 07-20-2008, 01:51 AM
Member
 
Posts: 11
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..
Reply With Quote
  #4 (permalink)  
Old 07-20-2008, 06:44 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
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
Reply With Quote
  #5 (permalink)  
Old 07-20-2008, 07:12 AM
Member
 
Posts: 11
Default

I'll try this!
Thank you :-)
Reply With Quote
  #6 (permalink)  
Old 07-20-2008, 07:43 AM
Member
 
Posts: 11
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 ?
Reply With Quote
  #7 (permalink)  
Old 07-20-2008, 08:40 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
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
Reply With Quote
  #8 (permalink)  
Old 07-20-2008, 09:01 AM
Member
 
Posts: 11
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..
Reply With Quote
  #9 (permalink)  
Old 07-20-2008, 09:11 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
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
Reply With Quote
  #10 (permalink)  
Old 07-21-2008, 07:12 AM
Member
 
Posts: 11
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.