Self Hosted Email server

hey all
Was intereste in hosting my own email server
not finding the right place to look
is there a wiki on arch wiki anyone can point me to? ill keep looking but if someone has done this and could point a finger in a direction id be grateful
thnx
Last edited by VanillaFunk (2014-03-04 10:27:30)

--edit --
I have set up a email server with dovecot and postfix
After completion of the setup.. I can telnet localhost smtp and connect however telnet localhost pop3 or imap do not connect.  I have also noticed from my email client that i am unable to send emails... not sure what some one helping may want to know so i will post a few things.
postfixadmin had created the mailbox for the user  lets just call it [email protected]
the sql database shows the user  domain 
domain description aliases mailboxes maxquota quota transport
place.com private email 10 10 10 0 virtual
I assume i have an issue with dovecot? but again not sure what to post
I have forwarded the ports 25 , 143, and 80  and checked dovecot again this morning.  which is the same as written in the wiki page,  gonna look over a few things and see if i can find any else related.  Though most of my findings as to setup were not arch related.
sorry for the lack of info
output from mtoolbox.com check
Connecting to xxx.xxx.xxx.xxx << blacked out ip
220-darkstar.home ESMTP Postfix
220 darkstar.home ESMTP Postfix [6692 ms]
EHLO MXTB-PWS3.mxtoolbox.com
SendSMTPCommand: You hung up on us after we connected. Please whitelist us. (connection lost)
MXTB-PWS3v2 7457ms
output from my email client when sending
* Account 'private': Connecting to SMTP server: darkstar.home:25...
[12:15:03] SMTP< 220-darkstar.home ESMTP Postfix
[12:15:09] SMTP< 220 darkstar.home ESMTP Postfix
[12:15:09] ESMTP> EHLO darkstar.home
[12:15:09] ESMTP< 421 4.3.2 No system resources
** error occurred on SMTP session
*** Error occurred while sending the message:
421 4.3.2 No system resources
[12:15:09] IMAP4> 43 UID STORE 1581 +FLAGS.SILENT (\Deleted)
[12:15:09] IMAP4< 43 OK UID STORE completed
[12:15:09] IMAP4> 44 EXPUNGE
[12:15:10] IMAP4< * 1 EXPUNGE
[12:15:10] IMAP4< * 0 EXISTS
[12:15:10] IMAP4< 44 OK EXPUNGE completed
[12:15:10] IMAP4- [fetching UIDs...]
[12:15:10] IMAP4> 45 UID FETCH 1:* (UID)
[12:15:12] IMAP4< 45 OK UID FETCH completed
edited post this morning as it sounded a lot more complete at 530 am go figure.
Last edited by VanillaFunk (2014-03-04 19:01:03)

Similar Messages

  • Hosted Email Server can not send emails to certain domains including Hotmai

    I host my own email server and domain, but when I try to send emails to certain domains Hotmail being one of them, It gets refused saying something about spamming, when I know I am not a spammer because only one of the users in my domain can actually send and receive emails.
    Is there a list I can include my domain in, so that I can bypass the spammer status?
    Any help is greatly appreciated it.
    Thanks!

    This is getting common as people attempt to cut down the spam.
    Check your reverse dns is correct, I'd suggest an external test like http://www.mxtoolbox.com/ against your system/domain is a good place to start.
    In the case of the problems I had at home a while back this was down to my ISP not setting up the reverse DNS correctly. I got the Reverse DNS not matching the SMTP Banner i.e. IP address then ISP name:-
    xxx.xxx.xxx.xxx.btopenworld.com
    Microsoft and some other companies introduced a while back the use of SPF records, so check your zone file info to make sure this is there and valid.
    http://old.openspf.org/index.html will help here, if you haven't got SPF set-up.
    Some ISP's employ Goodmail systems, now which isn't a problem for small companies/home users sending small amounts of email, but will effect large companies.
    If you're not sending large amounts of email to AOL, Hotmail, Yahoo etc this shouldn't effect you. Basically, it will force a 'drip feed' into their email systems. One company I worked at had to send email to customers, and this meant the first few emails would be accepted, then the server wouldn't accept more email for 20 minutes or so, then it would take another 5 emails, and so on....
    Dynamic IP addresses, from your ISP can also cause huge problems. If you haven't got a fixed IP address, many systems will reject email. Even if you have a static IP address, ensure your ISP has this correctly allocated. Sometimes, you'll get it from the wrong range (ones which normally are Dynamic), and this will cause problems. 'Cheap state' ISP's can often allocate you a fixed IP, but because they have 'run out' of fixed addresses, they may pinch a dynamic one....
    Some places check your MX records http://vger.kernel.org/mxverify.html will help here. It's a bit of a cheat, as large companies may not have the same outbound servers as inbound servers, but I have seen this cause problems when ALL the mail servers are not listed in the MX records.
    The only one I wouldn't worry about too much is the Goodmail system, unless you're sending large amounts of email. But even then, they normally only slow email delivery down and not actually reject it.

  • New EA3500 with self hosted web server

    Let me start off by giving you some background. I was using a wrt54g previously, and host my own webserver, including my own DNS server. I used port forwarding to forward the web traffic to that computer. Well my family got me a new EA3500 as my old one would continually stop working.
    Since changing router when I duplicate the port forwarding setup from old to new, all the web browsing dies. My web server has now been offline for a few days, and I'm frustrated beyond belief now. I know I've seen the previous posts saying to never forward port 53 (DNS), but I'm at a loss why I could with my old router, but it's now the end of the world with this new one. 
    I have to figure what's needed to get my server online again, and would love to hear from some of the experts out there.
    Brett

    Ok, so when I do some random port checks, only showing the few that I've forwarded as open.
    21 FTP 
    53 DNS 
    80 HTTP
    The biggest problem I can't wrap my head around is the fact that other than my new router, the setup is identical and everything was sympatico. Also why when I'm connected via the guest account, I can surf with no problems (but obviously can't access my network).
    The server always requests the same IP address from DCHP, so that won't be changed, so static it is I suppose. I host a couple of my own web sites, nothing too fancy.   http://www.thershl.com

  • Why won't my iPhone search/find mail sitting on the godaddy hosted email server?

    I guess it's not mapped correctly. Any suggestions to help me troubleshoot this?

    When I look for mail deleted mail on my iphone that I know for certain is sitting inside my trash or archive folder on the server, then it does not locate it. It's not querieng those folder for some reason.

  • How can OS X Server email be setup with hosted email?

    We are a small business with our email hosted by an ISP. We are happy with this arrangement and don't want to bring email in-house. However, we would like to be able to setup email (on OS X Server) so that we can access shared email accounts (eg. info@... and sales@....) from any Mac on our network.
    I know we can setup each Mac to access the hosted email account but this is not ideal because when one of us reads an email its marked as read on the hosted server but if the email has already been sent to the second client it will not show up as read there. Likewise, we can't see each other's replies or saved mail because these are saved in the mailbox on each Mac client. Whereas, if the Mac clients were both reading the shared email account from the same mailbox on the OS X Server, this problem would be eliminated.
    I was thinking that the OS X Server email would enable us to do this but can't work out how.

    Camelot - thanks for your reply. I'm not sure though if I posed my question clearly/correctly though.
    I also work with a company who use Outlook on Windows and they have recently setup something similar to what I'm looking for:
    a) they have Public Folders in Outlook - can Mail do this?
    b) they have setup Outlook in I guess a relayed sort of way, whereby the hosted mail is downloaded by the Outlook server and each client then reads from their mailboxes on the server and replies via the server back to the hosted email. This has a couple of advantages (eg. only have to setup the hosted email details in one place, rather than on every client) but in particular it means that when on their network you can logon from any computer and open your local mailbox to read email, see your saved emails & replies (which aren't all saved on the hosted email), etc.
    If OS X Server mail could do either a) or b) I think it would give us the functionality we want. With b) we could access a mailbox on the server from any client rather than having to duplicate mailboxes on each client (and hence them getting inconsistent).

  • Spam Email Server Account Hijacked

    Hello everyone,
    I've been having a lot of trouble with one particular email server. I've posted a couple of questions but nobody has answered me so I went and re-installed the whole server by changing it's static IP and adding an Airport Extreme in between so that the server only does DNS, Open Directory, File Sharing and Email.
    Everything it's been going well until one user started receiving email notifications about mail returned messages.
    I've tried several things:
    - Removed the non SSL website so I only left the Webmail on 443
    - Changed to more secure passwords
    - Lock the account after 10 bad passwords (the user gets blocked every couple of hours)
    - Deactivate the POP protocol as nobody is using it, we are only using
    - Tried blocking some Russian IPs because I noticed that all the emails are Reply To the domain ngs.ru but from the logs it looks like it's going through locally.
    My user has only Macs and iOS products so even though it's a mixed environment I don't think there could be a Malware doing this.
    I don't know what else can I do, I really want to avoid the server getting blacklisted and I've been looking for help so I would really appreciate if someone can provide me some guidance.
    Here's the postconf -n:
    server:~ administrator$ sudo postconf -n
    biff = no
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    enable_server_options = yes
    header_checks = pcre:/etc/postfix/custom_header_checks
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    mail_owner = _postfix
    mailbox_size_limit = 0
    mailbox_transport = dovecot
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    maps_rbl_domains =
    message_size_limit = 0
    mydestination = $myhostname, localhost.$mydomain, localhost, ecogenia.ca, server.ecogenia.ca, localhost.localdomain, $mydomain
    mydomain = ecogenia.ca
    mydomain_fallback = localhost
    mynetworks = 127.0.0.0/8,192.168.1.0/24,207.115.108.190
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpd_client_restrictions = hash:/etc/postfix/smtpdreject cidr:/etc/postfix/smtpdreject.cidr permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit
    smtpd_enforce_tls = no
    smtpd_helo_required = yes
    smtpd_helo_restrictions = permit_sasl_authenticated permit_mynetworks reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
    smtpd_pw_server_security_options = cram-md5,gssapi,login,plain
    smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks  reject_unauth_destination check_policy_service unix:private/policy permit
    smtpd_sasl_auth_enable = yes
    smtpd_tls_CAfile = /etc/certificates/server.ecogenia.ca.B9BEBCFA9A643188A6A20932B602BC15FBEB0C4F.c hain.pem
    smtpd_tls_cert_file = /etc/certificates/server.ecogenia.ca.B9BEBCFA9A643188A6A20932B602BC15FBEB0C4F.c ert.pem
    smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
    smtpd_tls_key_file = /etc/certificates/server.ecogenia.ca.B9BEBCFA9A643188A6A20932B602BC15FBEB0C4F.k ey.pem
    smtpd_use_pw_server = yes
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    unknown_local_recipient_reject_code = 550
    virtual_alias_domains = $virtual_alias_maps hash:/etc/postfix/virtual_domains
    virtual_alias_maps = hash:/etc/postfix/virtual_users
    These are some of the logs I've been seeing:
    Dec  4 04:06:51 server postfix/smtpd[19291]: NOQUEUE: reject: RCPT from unknown[95.65.176.14]: 554 5.7.1 Service unavailable; Client host [95.65.176.14] blocked using zen.spamhaus.org; http://www.spamhaus.org/query/bl?ip=95.65.176.14; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[95.65.176.14]>
    Dec  4 04:08:54 server postfix/smtp[19353]: 7897321698B: to=<[email protected]>, orig_to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=21, delays=10/0/0/10, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=17722-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as F0C1121699B)
    Dec  4 05:08:14 server postfix/smtp[21213]: 43A6E216C47: to=<[email protected]>, orig_to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=17, delays=11/0.02/0/5.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=17722-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A6914216C55)
    Dec  4 05:16:28 server postfix/smtp[21479]: 6A7D8216CB8: to=<[email protected]>, orig_to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=17, delays=11/0.02/0.01/5.6, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=17723-04, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as B435E216CC4)
    Here is an example of the emails returned that the user has never sent:
    From: "Mail Delivery System" <[email protected]>
    Subject: Undelivered Mail Returned to Sender
    Date: 3 December, 2012 1:08:42 PM EST
    To: [email protected]
    Nous sommes desoles de vous informer que votre message n a pas
    pu etre remis a un ou plusieurs de ses destinataires.
    Ceci est un message automatique genere par le serveur mwinf5d38.orange.fr.
    Merci de ne pas y repondre. This is the mail system at host mwinf5d38.orange.fr.
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients.                  The mail system <[email protected]>: host mail.ru[94.100.176.20] said: 550
    spam message discarded. Please visit http://mail.ru/notspam/abuse?c=dK3Cqtwc2M_u_NHfPpZdr5kaLTUE1R6jDAAAAPoyAAATz4o6 or report details to [email protected]. Error code: AAC2AD74CFD81CDCDFD1FCEEAF5D963E352D1A99A31ED504. ID: 0000000C000032FA3A8ACF13.  
    From: Вера Краснова <[email protected]>
    Subject: Кредит под конец года каждому, успевайте оставить заявку на кредит в декабре.
    Date: 3 December, 2012 12:59:23 PM EST
    To: Дина <[email protected]>
    Reply-To: Вера Краснова <[email protected]>
    Доброе время суток, в четвертом квартале 2012 года Вы проявляли интерес к нашим кредитным программам, сообщаем Вам, что Ваша заявка получила одобрение от службы безопасности нескольких банков и мы просим заполнить заявку на кредит на сайтеhttp://renessanscapital.ru/ 
    С уважением, Вера Краснова
    т. +7 (913) 574-24-76
    skype: credit.skype
    ICQ: 6573118
    Внимание! Для того, чтобы отписаться от рассылки нужно один раз отправить заявку на получение кредита на странице http://renessanscapital.ru/ после чего на Ваш e-mail больше не будут отправляться письма.
    I'll really appreciate anyone's help.

    I've been getting a lot of bounce backs from the same SMTP server as you to our email domain as well.
    The offending server mwinf5d55.orange.fr is sending "backscatter" spam which should be simply dropped by them instead of bouncing back to the "FROM" address.
    Because of this problem of bounced emails, I've tweaked our SPF (Sender Policy Framework) DNS TXT entry for our email domain to help receiving mailservers know what our legitimate OUTBOUND smtp mail servers actually are.  This should allow correctly configured email servers to drop any email from mwinf5d55.orange.fr because it is not a valid source of email for our domain.
    (See http://www.openspf.org/SPF_Record_Syntax for some syntax)
    Some details that I've dug up:
    The SMTP server at orange.fr is accepting mail based on forged FROM: addresses which bounce back to you by the receiving target TO: address mailservers. 
    Eg. From your email bounce back message:  host mail.ru[94.100.176.20] said: 550 spam message discarded.
    I'm not sure if the spammer is using the mwinf5d55.orange.fr smtp server as an open relay or if it's using someone else's smtp username and password to send mail.
    If you look at the email headers of the original bounced (spam) email that caused the backscatter it shows for example (from one of our bounces that I've received):
    Received: from Unknown ([92.46.248.56])
    by mwinf5d55 with ME
    id 7XfA1l00l1Dkwus03XfJsw; Mon, 04 Mar 2013 20:39:43 +0100
    X-ME-IP: 92.46.248.56
    X-ME-Entity: ofr
    When you look up the IP address source of that email it shows that it is coming from "JSC Kazakhtelecom, West Kazakhstan Affiliate".
    http://en.utrace.de/whois/92.46.248.56
    If you lookup the original source email and find that it's from your original user's computer then you have a problem.  If it's from a compromised machine overseas that's sending forged spam on your user's behalf, then there's not too much you can do about it short of publishing a correct SPF record.
    Hope that helps.

  • How do I fix my e-mail password for I-photo?  Get this message, "The email server didn't recognize your username/password combination."

    When trying to send a group of photos the e-mail requested my password.  Apparently I gave it the wrong one.  When I tried to resend, it doesn't ask for a password, just gives me this message, "The email server didn’t recognize your username/password combination."  How do I fix the problem?  I tried I-Photo help, but it says "NOT available."  I'm getting VERY frustrated since my I-Book G-4 NEVER did such "STUPID" things like ask for a password to send photos!!!  
    I tried sending single photo, but get the same message.
    Also, my e-mail is NOT @bellsouth.net.  It is @icloud.com  I tried to change it but couldn't.  How do I change it on this site.  I tried to edit my info, but couldn't change the e-mail!!
    <Email Edited by Host>

    I'm trying to email from iPhoto

  • Email Server Set up

    Ok, I'm not new to Macs but I am new to setting up the emai service.  I just took the Server Essentials course and learned how to set up an email server using OS X but I am unable to take what I've learned and use it in our environment.  A little background: 
    We're running OS X Server 10.5.8 on a 2x2.3 ghz Quad-Core Intel Xeon Xserve with 6gb of RAM. 
    Our mail is POP, hosted by a hosting provider. 
    We do have a VPN connection.
    What I am trying to do (or to find out if I CAN do this) is set up a local mail server to capture all email so we don't have to continuously backup the individual workstations.  It would also be very helpful to have a central Address Book.  In addition, most of our users are laptop users (all Mac) and may need to connect remotely. 
    So my questions are these:
    How do you set up a mail server for an existing hosted POP account?
    If you set up a mail server, how do people get their mail on remote devices, like phones, iPads...?
    Would a centralized mail server allow for searching of individual emails?
    Any help I can get here would be greatly appreciated.  I'm an IT manager but I'm expected to know everything about everything (including electrical work).  Every other place or person Ive gone to has been thoroughly specialized and not able to help me with my specific needs.

    You would have to transition all your users to the new mail server hosted in-house. You really can't have two separate email systems (other than in a redundancy config) running together. There may be some possible kludge to make that work, but it's probably more work and risky than just hosting all email internally.
    DNS will have to point to the proper machine and MX record for mail to flow in and out. My recommendation here is to do this over weekends when no one is usually working and to get DNS working first before moving on to running mail services. This all does pre-suppose that you have a registered domain name (example.com) for this to work, yes?
    Based on your requirements, as Camelot pointed out, I would go with an IMAP-only setup. Emails from the POP server/accounts can be transferred to their IMAP account. When I did exactly what you are looking at, I had all users create a NEW distinctly named IMAP email account in their mail client, because it is very probable that your old server will still be active and accessible until you terminate your email services with them. Users can then move their emial folders and messages to your internal server right in the mail client. After they have moved their messages, they can disable the old POP account and run solely on your email server.
    Mail storage files can get sizable regardless of the system environment. Email attachments are the real killer in IMAP configs: big attachments, or lots of smaller ones, balloon the email store directory usage. Consider implementing quotas and attachment size limits if is seems appropriate for your environment. (Just yesterday I had to ask one of my users to prune out his emails - his mail store was in excess of 9GB - and threatened quotas if he didn't get a little more proactive on weeding his email folders regularly.)
    Would a centralized mail server allow for searching of individual emails?
    Only to the same extent that users can search within their own emails. Searching accross accounts - like Tom searching in Jim's emails - isn't allowed at the user level. At admin level, on the server, you could do some grep searches in command line but even that's a little dodgy given the sacrosanct nature that cyrus invokes permissions-wise on contents of the imap/user/ directories.
    so we don't have to continuously backup the individual workstations
    That works, only to the extent that you are backing up your server. (And Time Machine backups of/on your server and NOT a bulletroof backup solution.)  Even then, not having clients backed up is not a wise strategy either. Time Machine is fine at the user/client level, but have a robust backup strategy for your server in place.
    HTH,
    -Doug

  • Connect iPhone to Maverick Email Server

    Hello,
    I have set up a fresh Maverick Email Server following these instructions: https://www.yesdevnull.net/2013/10/os-x-mavericks-server-setting-up-mail/
    I do not installed a bought SSL certificate and so I am just using the standard "built-in self one".
    The article from www.yesdevnull.net I mentioned above propose to deactivate POP and to use an Opendirectory authentification (so no cleartext nor POP authentification possibilities)
    I can use, without any problem, my Maverick Mail Server via Mail app on my local network and can send, and receive emails via Webmail (cloud, gmail etc)
    Unfortunately I can not set up my email account on my iPhone!!!
    It says that the email server does not answer. (I have tested it and successfully received emails from a Gmail account so it runs)
    When I set up the email account on the iPhone it asks me if I want to use SSL. In both cases (yes or no) it does not work.
    What could I check?
    Is it compulsory to buy and install an SSL certificate to use it on my iPhone?
    Thanks for your help.

    This may work - I havent tested...
    Step 1. click on wireless icon on taskbar, Select Create Network and then give it a name.
    tick the Require Password if you want this to be secure.
    Click “OK” and it will create the network.
    Step 2. On iPhone, go to Settings > Wi-Fi Networks, you should see the new network. Tap on the name the phone should connect.
    You should now be able to navigate to the local website address (like option 2 below).
    If you need to share the internet connection with the phone:
    In System Preferences, go to Sharing – Internet Sharing – Share connection from Ethernet – To computers using Airport – Click Airport Options and set up that the same as above.
    For testing the site / web server
    Option 1) Set up a developer account and download xcode - this has a mobile safari simulator, you can then drag/drop the local web files into this to test them.
    Option 2) With MAPM or Apache running as a web server on the Mac you can set up a virtual server and access this on the iphone via the local wifi network (i.e. http://192.168.1.164/mysite).

  • Need help on Self Hosting Using channel Factory

    Hello,
         Need Help.
         I am trying to self host WCF service using cutom Channel Factory class. but I am getting exception.
     The scenario is something like below this  : -
    I want to create the endpoint connection to WCF service. I want to achieve this  using custom channel factory(not using default channel factory API provided in .Net Framework).
    I have written one class and it is derived from channel factory and we are reading the service endpoints, behaviors, bindings from external configuration file added in the project.
    I am able to connect to server side service hosted on different machine using following sample code successfully.
    In the case of “self-hosting”  I am receiving following error : --
         "There was an error reading from the pipe: The pipe has been ended. (109, 0x6d)."
    Below is the code which I have written for self hosting WCF service using custom channel factory.
    // Method where I am calling CustomChannel Factory constructor
    internal void ProxyCall(string msgEndpointConfigurationName, string url)
                string appConfigDirName, extConfigFilePath;
                FileInfo configFileInfo = new FileInfo(appConfigName);
                appConfigDirName = configFileInfo.DirectoryName;
                extConfigFilePath = appConfigDirName + "\\" + extConfigFileName;
                this.messageEndpointConfigurationName = msgEndpointConfigurationName;
                if (string.IsNullOrEmpty(url))
                    this.messageFactory = new CustomChannelFactory<IServerOperationsMessage>(extConfigFilePath, this.messageEndpointConfigurationName);
                else
                   //EndpointAddress e = new EndpointAddress(url + ClientToServerOperations.ServiceAddress);
                   //this.messageFactory = new ChannelFactory<IServerOperationsMessage>(this.messageEndpointConfigurationName, e);
                   this.messageFactory = new CustomSelfHostingChannelFactory<IServerOperationsMessage>(extConfigFilePath, this.messageEndpointConfigurationName, url + ClientToServerOperations.ServiceAddress);
                   //this.messageFactory = new CustomSelfHostingChannelFactory<IServerOperationsMessage>(extConfigFilePath, this.messageEndpointConfigurationName, e);
       ClientMessageFormatterBehavior formatterBehavior = new ClientMessageFormatterBehavior();
       foreach (OperationDescription operation in this.messageFactory.Endpoint.Contract.Operations)
        if (!operation.Behaviors.Contains(typeof(ClientMessageFormatterBehavior)))
         operation.Behaviors.Add(formatterBehavior);
       this.messageFactory.Endpoint.Behaviors.Add(new MessageStatisticsBehavior());
       this.messageFactory.Open();
    // Custom Channel Factory Class
    internal class CustomSelfHostingChannelFactory<T> : ChannelFactory<T>
            /// Custom client channel. Allows to specify a different configuration file
            /// <typeparam name="T"></typeparam>
            private string configurationPath, selectedMsgEndPoint, uriAddress;
            public PPCCustomSelfHostingChannelFactory(string configurationPath, string selectedEndPoint, string uriAddress)
                : base(typeof(T))
                this.configurationPath = configurationPath;
                this.selectedMsgEndPoint = selectedEndPoint;
                this.uriAddress = uriAddress;
                EndpointAddress e = new EndpointAddress(this.uriAddress);
                base.InitializeEndpoint(selectedEndPoint,e);
            //As you can see, a call to the method InitialiazeEndpoint of the base class is required.
            //That method will automatically call to our CreateDescription method to configure the service endpoint.
            ///Loads the serviceEndpoint description from the specified configuration file
            protected override ServiceEndpoint CreateDescription()
                ServiceEndpoint serviceEndpoint = base.CreateDescription();
                return serviceEndpoint;
            private EndpointIdentity GetIdentity(IdentityElement element)
                EndpointIdentity identity = null;
                PropertyInformationCollection properties = element.ElementInformation.Properties;
                if (properties["userPrincipalName"].ValueOrigin != PropertyValueOrigin.Default)
                    return EndpointIdentity.CreateUpnIdentity(element.UserPrincipalName.Value);
                if (properties["servicePrincipalName"].ValueOrigin != PropertyValueOrigin.Default)
                    return EndpointIdentity.CreateSpnIdentity(element.ServicePrincipalName.Value);
                if (properties["dns"].ValueOrigin != PropertyValueOrigin.Default)
                    return EndpointIdentity.CreateDnsIdentity(element.Dns.Value);
                if (properties["rsa"].ValueOrigin != PropertyValueOrigin.Default)
                    return EndpointIdentity.CreateRsaIdentity(element.Rsa.Value);
                return identity;
            private Binding GetBinding(IBindingConfigurationElement configurationElement)
                if (configurationElement is CustomBindingElement) return new CustomBinding();
                else if (configurationElement is BasicHttpBindingElement) return new BasicHttpBinding();
                else if (configurationElement is NetMsmqBindingElement) return new NetMsmqBinding();
                else if (configurationElement is NetNamedPipeBindingElement) return new NetNamedPipeBinding();
                else if (configurationElement is NetPeerTcpBindingElement) return new NetPeerTcpBinding();
                else if (configurationElement is NetTcpBindingElement) return new NetTcpBinding();
                else if (configurationElement is WSDualHttpBindingElement) return new WSDualHttpBinding();
                else if (configurationElement is WSHttpBindingElement) return new WSHttpBinding();
                else if (configurationElement is WSFederationHttpBindingElement) return new WSFederationHttpBinding();
                return null;
            private Binding CreateBinding(string bindingName, ServiceModelSectionGroup group)
                BindingCollectionElement bindingElementCollection = group.Bindings[bindingName];
                if (bindingElementCollection.ConfiguredBindings.Count > 0)
                    IBindingConfigurationElement be = bindingElementCollection.ConfiguredBindings[0];
                    Binding binding = GetBinding(be);
                    if (be != null)
                        be.ApplyConfiguration(binding);
                    return binding;
                return null;
            private void AddBehaviors(string behaviorConfiguration, ServiceEndpoint serviceEndpoint, ServiceModelSectionGroup group)
                EndpointBehaviorElement behaviorElement = group.Behaviors.EndpointBehaviors[behaviorConfiguration];
                for (int i = 0; i < behaviorElement.Count; i++)
                    BehaviorExtensionElement behaviorExtension = behaviorElement[i];
                    object extension = behaviorExtension.GetType().InvokeMember("CreateBehavior", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance, null,
    behaviorExtension, null);
                    if (extension != null)
                        serviceEndpoint.Behaviors.Add((IEndpointBehavior)extension);
    Thanks in advance !! :-)

    Hi,
    There was an error reading from the pipe: Unrecognized error 109 (0x6d).
    One reason was inconsistent binding between client and server <netNamedPipeBinding> <security mode="None"></security>... (no
    communication)
    The other intermittent issue was time-out related.
    For more information, you could refer to:
    http://stackoverflow.com/questions/15836199/wcf-namedpipe-communicationexception-the-pipe-has-been-ended-109-0x6d
    http://stackoverflow.com/questions/22334514/wcf-named-pipe-error-the-pipe-has-been-ended-109-0x6d
    Regards

  • Mountain Lion push email - server name best practice

    Would anyone be able to guide a newbie with advice on server naming for a mac mini? 
    I have a public web presence but want to direct incoming email through the server for push email to iOS devices, i.e iPhones.  The server will also be a VPN to the internal network, which will be running a hybrid of mac and win7 clients.  The company webserver will remain at the webhost.
    Should I simply call the host machine server.mydomain.com or for example, mailserver.mydomain.com?  I have read some wiki's and advice for naming conventions that have left me confused.  I think I can handle the setting up of the CNAME, A and MX records.  But on the latter point, if someone has a simple English reference they want to offer up, then I would be most grateful.
    I want to adopt a sound strategy as my first foundation stone.  Or am I paranoid with this parameter?
    Many thanks in advance.

    Okay, I had this problem and solved it as follows:
    1. Deleted any non-functioning iCloud-IMAP accounts from Mail's Preferences. I had two that were working fine, so I left those in place. One of those was the primary iCloud account on my Mac, i.e., the account used for "Find My iPhone/Mac/iPad" and iCloud storage, etc.
    2. Then I quit Mail and restarted my computer.
    3. Went to my other devices and made sure the primary account was the same one there. [Note: It was not -- the primary iCloud account was different on my iPhone versus my Mac, I think this discrepancy might have been the source of the problem, but I don't know.]
    4. I also made sure my wife's Mac uses a different primary iCloud account, one that is not on my machines, although we share one secondary iCloud Mail account (which is not the primary on any device -- it is always a secondary account).
    5. Then, following MChannel's advice upthread, I went into System Preferences > Mail, Contacts & Calendars, and added the formerly problematic iCloud accout that way. I have everything turned on for my primary iCloud account. All of the secondary accounts only have Mail turned on (although I don't think that matters -- you can turn on the other features that are available there if you like).
    6. Opened Mail and voila! -- everything is working fine. Accounts are all set up properly without me even opening Mail's Preferences.

  • Fetching and relaying mails to a third party email server

    Hi All,
    I have an existing email server sitting in the DMZ handling my company domain ([email protected]). I have installed OCS on the internal network. I want al my users to use OCS with the same email address they use on the existing email server ([email protected]).
    For this purpose, the smtp outbound server on oracle email relays to the mail server sitting in the DMZ. This works fine.
    However, I also want inbound emails coming to the external mail server to be delivered to Oracle mail server. I am using fetchmail for that. The fetchmail daemon does a pop on the external mail server and smtp to the oracle email server.
    The problem is that is goes into a loop. When I get an inbound email on the external email server, it gets fetched (via fetchmail) and smtp to my OCS account. However, the OCS outbound SMTP server immediately relays it again to the external email server. And this results in a continuis loop.
    I have searched the internet and this forum for a solution. There was some mention about sending the fetched emails from the external server to OCS mail via IMAP-Append rather than SMTP. However, I have no idea how to enable that on fetchmail (or if that works on OCS).
    Has anyone faced a similar problem or has some soluiton to this issue.
    Thanks for the help.

    My client wants to keep their externally hosted (highly available) mail server.
    They want OCS internally.
    They want the external mail server to be the recognised MX host.
    They want OCS to pull mail from the external server, or the mail to be pushed (if there is a guarantee of delivery).
    Thanks

  • Calendar Server and Email Server on Same Machine - Email Issue

    Hi.
    I've installed email and calendar on the same host. The email domain for test purposes is the name of the machine. I noticed in the configuration guide, it says that if you put the calendar server and email server on the same machine you need to configure sendmail.cf and modify incoming rules in order to get email reminders from Calendar to Email. I have done this but am still not able to. I get the emails kicked back to root and they say:
    553 5.3.5 System Config Errors
    553 5.3.5 <machine name> config error: mail loops back to me (MX problem?)
    Has someone seen this before?
    Thank You,
    Matt

    Hi Russ,
    We have the same problem as Matt.
    We have properly set up OCS Email it works well both inside and outside our network.
    The only thing that appears not to be working is the email notification capabilities of OCS Calendar.
    We have changed sendmail.cf as stated in the documentantion.
    we are using -
    RedHat Advanced Server 2.1,
    sendmail 8.11.6
    bind 9.1.3
    I would be very gratefull of any information on this, as we're out of ideas...

  • Q10 no syncing properly with MS Hosted Exchange server

    Hello,
    I have a Q10 and my email is via MS Hosted Exchange server.  On my PC via Outlook 2010 all is great, via the web interface all is great.  Current send/receive emails are synced properly, my calendar and notes/reminders are great.
    My issue is my folder tree within the Q10 email environment doesn't display all of my folders.  As emails come in I file them by customer to help with Inbox clutter...
    I don't have a storage issue on the Q10.  Any thoughts?  Is there a max folder number setting somewhere?
    If there is info on this somewhere, I couldn't find it...
    Thanks for the help.

    Try to use FQDN of Cas server in URL and Add CASADMIN into all the three Exchage Roles: Recipient Management; View Only Organization Management; and Server
    Management. Enabled the Windows Authentication on Exchange CAS Server for /powershell in IIS.
    Also You can check below link
    https://social.technet.microsoft.com/Forums/en-US/e7ca3f0c-a793-4437-8050-2de4c9d9253c/exchange-connector?forum=configmanagergeneral
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"Mai Ali | My blog:
    Technical | Twitter:
    Mai Ali

  • Integrating CRM with hosted Exchange server that is not Office 365

    I started out by setting up our domain, but it seems to be pushing me to add loads of DNS records so that Office 365 can use it.  Firstly, do I have to use an Office 365 hosted Exchange, or can I use an alternative (my Exchange is hosted with COLT CEANO)
    When I try and create an email server profile, I only have the ability to specify a name and description - the fields to specify incoming and outgoing servers etc. are not visible.
    I expect I am doing something fundamentally wrong, can anyone assist ?
    Thanks.

    If you are refering to the email function in CRM, then you have 3 option
    1. Server side sync
    2. Outlook client
    3. Email router
    You can use your own exchange to send out email.

Maybe you are looking for

  • Using Case Statement in Where Clause

    Hello All, I wish to conditionally use different columns for retrieving unique row. This will be dependent upon a parameter passed to the Function/Procedure. The SQL framed looks as below: +select *+ from Test_Table where column_1 = <some_value> and

  • DW CS3: Template & CSS Rules problems

    Dreamweaver CS3 Templates and CSS Rules. I've built a basic html page with a header, navigation links and main content area, then saved this as a template with the content area as the edit region. When I create new html pages from this template I wan

  • No progress to download email attachment - iOS 4.2/4.3, EAS

    Dear, I use iPhone / iPad 4.2 & 4.3 and I couldn't download email attachment. It shows me the graphic which indicates the start of download but it's still 0 byte. It works sometimes when I tried to kill email client and restart it but it can't guaran

  • Indesign XML workflow, how to handle footnote (CS3)

    Hi Dave/All, Nearly 3 moths i'm struggling more with doing footnote. Is it possible or not i.e. xmlElement move to the footnote Any one help me pls!!! Thanks in Advance sudar

  • Lenovo T410 & 4337 dock = display blackouts

    I've got a Lenovo T410 computer. I just got a 4337 docking station, and I'm having a dispay problem that is making it almost unusable. Every so often, for no discernable reason, the image on my external monitor blacks out. After a second or two it re