Configure LAMP stack to use internal mail relay without....

Does anybody know of a way i can configure my new LAMP stack to use the companys internal mail relay without having to implement postfix, or sendmail?  I did already try to implement send mail recently, and its very confusing to me since i have never set up a mail server, and i tried to implement postfix, SOHO i think was the wiki i used, and that never got done either.  It seems incredibly cryptic to someone who even has tons of server experience, just not the email portion.  Maybe the wikis are just written for those who have more experience in making SSL certs, and being more versed in MX records, and DNS for email specific things.  etc... 
Since i have not successfully set up a mail server thus far, i dont have enough general mailer / experience to understand the wikis on setting up Sendmail, etc...   
My company asked me if i could just use their internal mail relay instead.  I would like to know if i still need to set up sendmail to allow PHP mail() function to send out mail, or if theres some configuration somewhere that i can adjust so it can use the existing internal mail relays. 
Note, the only thing im trying to achieve here is to get my apps to send out emails for login password management, and error logs.

In my experience an SMTP server is preferable to sendmail/postfix as it is far more portable and robust... (in a web environment) many webhosts, for example, pay no heed to the configuration of sendmail - so code that runs on one host fails on another. PHP mail() can be leveraged to use any backend you like but this typically requires root access (or at least permissions beyond those offered on typical hosting services), and, as said above, does not allow for any useful level of error reporting.
Swiftmailer is (generally) my weapon of choice - unless the particular project has additional PEAR dependencies/requirements that mean it makes sense to stay within the same codebase... not that it (PEAR) is always that consistent anyhow
I can't really offer much in the way of help with cron integration as that is not a route I have taken - it should think it would be pretty trivial (sic )to implement as you build your script... swiftmailer has some pretty neat "live address" checking routines - have a dig through the docs
Last edited by satanselbow (2013-12-17 09:49:13)

Similar Messages

  • Using java mail api without servlets, I ve sent an html mail.  In that Ive

    Using java mail api without servlets, I ve sent an html mail. In that Ive specified action to the servlet. On click, it shows url as file:///C:/Documents%20and%20Settings/sirivanig/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/CNFHMDIT/updatemailerform%5B2%5D.htm instead of www.servername.com/....
    May I know the reason why it shows like this.
    Do I ve to send htmlmail through servlet so that it does show proper url?

    Possibly your mailer is restricting your access to URLs to prevent
    various scams. Without the details, it's hard to know what's going
    wrong.
    Have you tried with a different mailer?

  • SBS2003 monitoring/reporting without using internal mail server?

    Client is running SBS2003 and for certain reasons, is not running internal exchange. All Exch services disabled and need to stay that way.
    Question; is it possible to configure the server somehow (registry, etc) to point the email to an external SMTP server instead of the internal mail server? We need to get the performance reports but aren't allowed to enable exchange.
    Thanks!
    Charlie

    As best I can recall, in the SBS 2003 era..the reports are acutally emailed using the SMTP service and not exchange.   No information has ever been provided from the MS Product team on how to make mods ot this.  
    But because of integration of SBS when you indicate the users to send to, it's looking at the FQDN and if its the one supplied during the CEICW wizard, then it's trying to send that to an exchange mailbox.   Have you tried running the wizard and
    supply an outside pop3 address?  (not the hosted exchange)  Does the message arrive?  
    Cris Hanna [SBS - MVP] (since 1997)
    Co-Contributor, Windows Small Business Server 2008 Unleashed
    http://www.amazon.com/Windows-Small-Business-Server-Unleashed/dp/0672329573/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1217269967&sr=8-1
    Owner, CPU Services, Belleville, IL
    A Microsoft Registered Partner
    MVPs do not work for Microsoft
    Please do not submit questions directly to me.
    <Charlie Kaiser> wrote in message
    news:[email protected]...
    No, I'm really not sparring with you. I'm just removing the irrelevant factors from the conversation.
    If you really have to know, their hardware is somewhat underpowered for the utilization it is receiving. The client is on hard times and cannot afford to upgrade the server hardware, nor can they afford a second server. Rebuilding their domain onto W2K3/W2K8
    standard is also too expensive a project for them.
    They have hosted external exchange and have for quite some time. They are happy with it and don't want to change. The server, after we took it over and tuned things for them, works fine. They experience almost no downtime and performance is adequate given
    the current configuration. But adding any additional load to the server results in performance issues, including memory and disk space. Adding an additional 5% load on the server for exchange right now is not an option for us or them. They do not want nor
    need exchange running internally.
    So it returns to the original question; is there any way to simply point the outbound email to a different SMTP server? Somewhere, the monitoring component says "send this information by email; connect to SMTP." If there's a way to modify that easily, we
    will do so. If there is not, then we'll probably just shut off the SBS monitoring and use a 3rd party tool intstead. But pointing SMTP is possibly simpler than making those changes.
    As a small-business consultant, we spend a lot of time trying to help small companies do things as cheaply as possible. For many companies, spending a few grand on a server or project is absolutely out of the question these days. So we do what we can. The
    solution you are pushing can work fine for a larger company that has a healthy IT budget. But not in this case.
    Cris Hanna, Microsoft SBS MVP, Owner-CPU Services, Belleville, IL

  • How to configure oracle alerts to use Workflow mailer?

    Hello Guys:
    We were trying to setup oracle alerts using workflow mailer. I have created a dedicated mailer for handling oracle alerts related mail.
    Here is what I need to clarify:
    1. Having setup a new mailer for Oracle alert do I have to still configure the Options in Oracle Alerts. This is where you choose which type of mail u want to use ( like Unix mail,Windows NT mail )
    2.How do I tell oracle alert to use the new mailer that I created exclusively for this? While creating the mailer at some point I remember putting ALR in configuration form.
    I am on 11.5.10 CU2. I am on 11i.ATG_PF.H
    Regards,
    Bala

    Hi Hussain:
    Based on the note I realised that my oracle alerts will user unix sendmail. But then If u go to " Oracle Alert Options "
    -- > Mail systems -- I check Unix send mail
    -- > Mail server options ( Do I have to fill this section? )
    My guess is that the send mail will post the email to a IMAP account ( I created oraclealert account ) and IMAP account will push the alert email to Recipient
    Mail Database/Server Name --- imap.mydomain.com
    Mail Priority --- Normal
    Accounts
    Application Installation username Password
    Blank ** Blank ** oraclealert pwd
    Blank ** Blank ** oraclealert pwd
    ** - It wont allow me to choose an application.
    Is there a simple test to make sure that my oracle alert is working or not? I appreciate your help.
    Regards,
    Bala

  • Send mail using Internal Mail server doesn't work

    I can't send mail using my companies mail server, which requires authentication and port 587 to send.  We have a valid, non self-signed SSL certificate so that is not the issue.  I can send mail using Bell's mail server but that violates our regulatory compliance obligations. 
    The server using POP3 and one must login to get mail as well as send.  Unfortunately there is no otehr error message than the: error sending "mail subject".  No further details are provided and when we check the mail servers logs its clear the Pre isn't even attempting to connect to the mail server.  So the request to send mail isn't even being sent out.  That could be an issue with the Pre or with Bell but Bell support will only troubleshoot to the point of fidning out if you can send using their mail server.  We can so their support stops at that point.
    I still have v1.3.1 of the WebOS as v1.3.5 doesn't seem to be out for the Bell Pre's yet.  But from what I've read v1.3.5 is even worse at handling mail not better.  However, there may be a solution out there to this beyond sending the Pre's back (I doubt we can) as Balckberry's and iPhone's don't have this issue.
    Any advice is greatly appreciated.
    Post relates to: Pre p100eww (Bell)

    Further update on this problem.  It does send if I use TLS instead of SSL so that must mean that the Palm Pre doesn't use SSLv3 or higher.  As TLS is a viable security setting option to maintain compliance I can use that.  But still Plam should seriously consider upgrading tis SSL versioning.

  • Release blocked orders using sap mail

    Hi Gurus,
    How can I configure SAP that will forward all blocked orders (due to credit management) to sap mail without using workflow functionality?  At the same time, the approver can release the block in sap mail.
    Thanks,
    Paul

    Hi john paul
    Assign KRML output type and maintain conditon record VV11 and use Internal mail (if internal mail is used) or External mail(If it is external mail is used) But the system will ask for personnel number while creating conditon record.If you have integrated with HR module then you tell them to create a personnel in your company code and while maintaining condition record VV11 assign that Personnel number (Internal or external mail), So once the sales order exceeds credit limit and gets blocked a mail will go to the Personnel number you assigned in the KRML condition record.The Personnel number you assigned in the KRML condition record  will reply back and then you can release the order and do delivery and billing
    Regards
    Srinath

  • Out bound mail relay

    Platform: Sun Solaris 8
    Software: iMS 5.2
    I would like to configure our server to use a specific relay for all out bound mail. Is there a simple way to do that?

    If by "outbound mail" you mean all mail addressed to other servers, it's easy.
    in your imta.cnf file, locate the two lines in "part II channel blocks" for tcp_intranet and tcp_local
    add the
    daemon
    keyword, followed by the machine you want to use for your relay, like
    daemon foo.domain.com
    I usually put it at the end of a line.
    after making the edits,
    imsimta cnbuild
    imsimta restart
    and you're done

  • Configure sendmail to reject all incomming mail?

    how would i configure sendmail on solaris8 to reject or trash all incomming email and still maintain capability to send email?

    I found this thread useful and wonder why it some of this information isn't more readily available. Webservers shouldn't be running at mailservers and so the sendmail daemon doesn't boot up. Mail at cron and through .cgi/perl scripts utilize the sendmail on the servers I manage.
    BUT -- in the last six months I find I'm having to reconfigure the sendmail.cf to find a way around an email configuration problem in our networks somewhere.
    I've normally used the smart relay without problem. Now, even though I have the "connect" for mail going out to several different mail relays on the domain, the mail does not get delivered. I've tried to trace it down to one relay and have been unsuccessful.
    The solution, and I don't understand it, is that we've setup a mail relay on a windows box in our domain and I've edited the sendmail.cf to use that mail relay instead of the smart relay.
    In addition, and this is really strange to me, but I'm not a sendmail guru -- we're masquerading as a hotmail.com
    If we don't masquerade as hotmail.com and use our own relay, the mail receipients don't receive mail occasionally. Both of these have to be in place for it to work successfully.
    I think someone, somewhere, has a rule setup incorrectly, but it's beyond the relays we normally default to. With the mail relay setup in our domain, it accepts the mail because it's a relay, but what kind of rule would they possibly setup that accepts us masquerading as someone else???
    Can anyone help explain this?
    I personally would love to see some documentation on how an SA could setup sendmail.cf for their webservers as outgoing and have it RIGHT.
    Thanks for listening.... feel free to say something. :-)

  • Hi, I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mail are not receiving. Mail queue showing Connection refused error. Please help me

    I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mails are not receiving. Mail queue showing Connection refused error. Please help me
    Thanks
    GIRI

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • How to configure sendmail to act as a mail gateway and relay mails???

    I installed the Solaris (Intel) v.8 (10/01) in my external network. Now, I want to configure it as a mail server and as a mail gateway between my internal mail host and itself.
    I think I have read all documentation which comes in Answerbook2 about mail gateway.
    I added some aliases to the aliases file in /etc/mail and executed the newaliases command.
    The aliases pointed to my mail host which is in my internal network.
    I included the IP address and the name of the mail host in the /etc/hosts
    I can telnet the internal mail host and I can connect to it and verify the internal account thru:
    mconnect "mail host"
    vrfy "account"
    But when I do
    /usr/lib/sendmail -v "alias" < /dev/null
    it translates the alias to the account in the internal mail host but it returns to me
    "account" ... User Unknow.
    When I try to use the mail server from one client in my internal network (I configure my mail client to use as Outgoing server the server in the external network) to send mails I receive the error:
    550 5.7.1 Relaying denied. IP name lookup failed
    I create a file called "access" and create the binary called "access.db" (makemap hash access < access), but it doesn�t work.
    I think that maybe the sendmail.cf doesn�t recognize the access file but I�m not sure. I have worked with other "sendmail" version under others OS (RedHat Linux) but the files are quite differents.
    Would you please help me?

    I found the way to do it and this is the procedure
    How to implement the mail gateway on Solaris 5.8
    You have to make changes in 3 different places
    1.- Files in /etc/mail (sendmail files)
    2.- /etc/hosts file
    3.- DNS files and /etc/nsswitch.conf file
    1.- Files in /etc/mail
    1.1.- Backup your existent sendmail.cf file and copy the main.cf file as
    sendmail.cf (cp /etc/mail/main.cf /etc/mail/sendmail.cf)
    1.2.- If you want to accept mail for entire domain in your mail gateway (your mail
    server is an MX record in the DNS files), you�ll have to modify the sendmail.cf
    file editing the line Dj as Dj$m or if you want to accept just mail for your specific
    server you must put Dj$w.$m (be carefull to avoid spaces).
    1.3.- Change in the sendmail.cf file the DM parameter adding ddn. It should
    looks like DMddn (no spaces anywhere).
    1.4.- Insert a line for the Dm parameter, which should include your domain
    (ex.:Dmyourdomain.com, be care with spaces). If you have defined multiple
    domains, add a line with Cm and put the domains one after other separated by
    spaces. You have to put a space between Cm and the first domain
    1.5.- Add the following rule in the ruleset, don�t use spaces, use tabs as
    separator:
    R$*<@$*.$+>$* $#ddn $@ $2.$3 $:$1<@$2.$3>$4 [email protected]
    1.6.- If you find the following rule in the ruleset you should comment out it.
    R$*<@$*.$+>$* $#$M $@$R $:$1<@$2.$3>$4 [email protected]
    1.7.- If your host is receiving mail under different names for "local" delivery,
    often you need to define those hosts in a "Cw" line and put the names one after
    other separated by spaces. You have to put a space between Cw and the first
    name.
    1.8.- If you want to relay mails to different domains or subnets you can include
    them into the file relay-domains. Each record in this file is a domain name (like
    sun.com) or a subnet (like 192.0.0., be carefull with last dot).
    1.9.- To test your sendmail service you have to stop and start it
    (/etc/init.d/sendmail stop; /etc/init.d/sendmail start) and you can do the following:
    1.9.1- To get basic debug information type:
    /usr/lib/sendmail -bt -d0.1 < /dev/null
    1.9.2- To test the conection:
    mconnect "mail server"
    vrfy "any alias"
    1.9.3- To test the alias you inserted into aliases file (remember run newaliases
    command after insert them).
    /usr/lib/sendmail -v "any alias" </dev/null
    2.- The /etc/hosts file:
    2.1.- You must include in this file the IP address server, its nickname
    (servername), its extended nickname (servername.domain), the word
    "mailhost", the word "mailhost" and your domain (mailhost.domain) and the
    word loghost.
    2.2.- If you wish you can include all the servers that you want in the file. You
    should do this is to avoid the use of DNS service translation.
    2.3.- Check the DNS service thru nslookup servername (ex. Nslookup
    sun.com), then test nslookup to your mail gateway
    3.- DNS files and /etc/nsswitch.conf file
    3.1.- Include a MX record for your mail gateway as the mail host for the entire
    domain and verify that each record into the zone files include the MX record.
    These files are in your DNS server (nameserver).
    3.2.- Check your /etc/nsswitch.conf file. The record host must include files and
    dns. It must look like
    hosts: files dns

  • How to configure Sendmail mail relay with authentication

    Hi,
           How to configure send mail relay.  Client gave us smtp host,port, username and password. We have a couple of server. If we configure the relay in any one of the server other servers able send mails using relay server. Please help me on this? 

    .Create an IT Resource of Type Mail Server. Give Name as "Email Server.Now populate the values for all the parameter for example Server,username,password and authentication type.
    .Go to System Configuration and in Email Server property value give the name of IT resource you created in step1 so the name will be "Email Server".
    http://forums.oracle.com/forums/messageview.jspa?messageID=3867506&stqc=true

  • Configuring Apple Mail client to work with gmail and mail relays

    I have a gmail account [email protected] and am successfully using this account from both my macbookpro an iphone.
    I also have an e-mail relay account [email protected] I have successfully configured the email relay to send mail to [email protected] and get it fine on my mail client. My problem is that when I reply to these emails or create fresh e-mails, I'd like it to use the address [email protected] not [email protected] When I used to use Eudora, there was a setting in the account configuration screen called "reply to" this would change the reply to email account to whatever I wanted, in this case, [email protected] I have scoured the mail documentation and realize that I am missing something simple. I would appreciate any assistance with configuration settings necessary to have my relay alias show-up on my mail headings.
    thanks
    Art

    The first thing to do is to log into the Gmail web site and configure your account so that it allows you to send mail from [email protected]
    Then configure your account in Mail so that the Email Address is [email protected] That should do it. This is better than setting a reply-to because the mail will really be from [email protected] and not [email protected]
    If you want, you can put both [email protected] and [email protected] in the Email Address (separated with a comma) in which case Mail will show a popup menu labeled From below the Subject. You can then select which address the message should be from.
    Message was edited by: deh2k

  • Using OS X Server as a backup nameserver and mail relay

    Hi there
    I manage websites and email on behalf of a number of clients, and until now have just used basic shared hosting for all their needs. However, I have had issues with the hosts, and have recently moved over to a VPS at my webhost to give me more scope and control.
    I have roughly got my head around everything I need to do to make it work from a theory point of view with DNS, email etc, but now the technical part of setting up backups on my OS X server is challenging me. There are two main services I want to offer backup for using my little home server on a static IP: backuo mail-relay and nameserver. The key is that these are pure backup for the 0.01% of the time that any webhost has a problem, so I am comfortable that they can be done from home.
    There are two specific areas I hope to use the Mac backup for:
    1) I want to ensure that should the VPS go down (or need to be restarted/maintained) I have a backup mail server to catch and queue mail until my server is back up. I think this is straightforward(ish) for a single domain, but I need to be able to do this for multiple users over multiple domains. Can anyone point me in the right direction for setting this up?
    2) As part of this, to be a bit more professional, I am using the VPS as a nameserver, so my clients see my domain as their nameserver. While I have multiple IPs, I only have one VPS, so if this goes down then the mail backup I set up above won't be contactable as the nameserver will also be down. Therefore I also need to be able to set up OS X as a secondary (slave) nameserver for all the domains. Again, can anyone point me in the right direction for this?
    Many thanks
    Richard

    You would setup your backup mail server as a secondary MX server. But you have to ask yourself is it worth the effort. What is the SLA you have with your hosting provider. If they guarantee 99.9% uptime then a mail server may only ever go down for 1 or 2 hours max. Mail would not be lost during this time it would just get queued.
    What front end is your VPS using is it CPANEL or Plesk?
    Here is an interesting document that relates to cPanel.
    How To Setup Backup or Secondary MX in CPanel

  • Can I use iOS mail without SMTP?

    Greetings,
    I am using iPhone 5s and iPad Mini, both with iOS 8.3.
    My question is this: Can I use something other than the iCloud SMTP server in order to use the native iOS mail app on my iPhone and iPad? (i.e. [email protected])
    I work for a public company that offers free wifi to its customers. Our IT staff blocks email over SMTP so that people can't come in and use our wifi to send spam/junk mail through our servers. I have Gmail and Yahoo addresses that I would like to condense into my one iOS address. But since I spend a majority of my day at work, I am not able to send or receive messages due to the SMTP blockage. This does not affect iCloud.com which is accessed through a hard wired connection on my desk, but I am not always at my desk, hence the need for iOS mail portability.
    I've checked online for an answer and can't seem to find one. I was told by our IT staff to configure the mail setting to go through a cloud server instead of SMTP but I don't know if that's possible.
    I would appreciate any information or insight you can offer.
    Thanks and best wishes,
    -Jason

    You do not get to pick which servers to use when you subscribe to someone else's email service. Gmail, Apple, Yahoo, AOL, Hotmail, MS Live all use SMTP to send from their user accounts.  You can use any of those systems with the iOS mail app, but they all use SMTP relay to send from your device to their internal mail sending system (which may not use SMTP, but the only way for you to get an outgoing mail into their system is to use SMTP). If your company blocks all SMTP traffic, then you'll never be able to send from a subscriber email service on a wifi device with a dynamic IP.
    You also cannot "condense" (whatever that means - merge?) any other proprietary email service you use (like Gmail or Yahoo) with another proprietary email service like Apple's. These are separate services run by independent companies.
    You should be able to use your browser to use Gmail or Yahoo or another service via their web interface though. When logged in via the web page, you are not sending mail from your device at all, but directly from the service providers system.

  • How do I install stunnel on Yosemite server 4 so my mail relay works on port 465?

    My ISP blocks outbound smtp mail and insists I point to their relay server on port 465.  After I set up mail relaying in the server config app I get SMTP log errors saying it's unimplemented.  After some research it looks like I need to install a SSL tunnel package called stunnel.  Has anyone had an success getting stunnel installed?  Or, has anyone had any luck using Yosemite Server 4 to mail relay through verizon.net (port 465)?  Any suggestions are much appreciated.

    I'll assume that you have to authenticate to the mail relay with a name and password. The Server GUI doesn't provide for this use case.
    Take the following steps to configure Postfix to relay mail to a remote SMTP server with password authentication over SSL. Substitute as required for strings in italics below. Address is the fully-qualified domain name of the relay host. The value of port is usually either 25, 465, or 587. Username and password refer to your credentials on the relay host.
    In the current version of OS X Server (but not necessarily in older versions), Steps 1 and 3 should be done for you when you enable relaying and relay authentication in the Server application.
    1. If necessary, create or update the relayhost directive in
         /Library/Server/Mail/Config/postfix/main.cf
    It should look like this:
         relayhost = [address]:port
    2. Add these lines, above the section at the end that begins with the comment "# Mac OS X Server":
         smtp_sasl_security_options =
         smtp_tls_CAfile = /etc/certificates/relayhost.pem
         smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
         smtp_use_tls = yes
    3. If it doesn't already exist, create the password file
         /Library/Server/Mail/Config/postfix/sasl/passwd
    with this content:
         [address]:port
         username:password
    Here address must match $relayhost.
    Then create the password database:
    sudo postmap /Library/Server/Mail/Config/postfix/sasl/passwd
    This action creates the file
         /Library/Server/Mail/Config/postfix/sasl/passwd.db
    The two password files should be readable by root only.
    4. Create the file
         /etc/certificates/relayhost.pem
    with the CA certificate(s) to be trusted for authentication of the remote host. You get those certificates from the service provider. If you can't find a link to download them, try this:
    openssl s_client -connect address:port -showcerts < /dev/null | sed -n '/-BEGIN /,/-END /p' | sudo sh -c 'cat > /etc/certificates/relayhost.pem'
    The command may produce an error message that isn't necessarily significant. For servers that use the older STARTTLS protocol, rather than straight TLS or SSL, this command may need to be modified.
    5. Restart the Mail service.

Maybe you are looking for

  • Windows vista error 1910

    im running windows vista(i know P.O.S.) but i cannot get itunes to stay running it is a new problem i just incountered, it says windows detected a problem checking for solution, finds nothing and kicks out of itunes,  im getting a error 1910 short cu

  • HELP. ANNOYING alarm at 3 am everynight that i didnt set

    so for the past couple of nights my blackberry has had a strange alarm at 3 am every night. its VERY annoying and frustrating because i didnt set it. i have another alarm set at 8 pm everynight, and that works perfectly fine. my alarm at night is als

  • Is Elements Organizer 9 robust (powerful) enough to organize 10,000 photos without crashing?

    I'm scanning literally thousands of photos from my 40 years as a photographer. I'm currently using Elements Organizer 9 to keep them organized using keytags and dates. I want to know if I can trust this basket to hold ALL my "eggs". I'm afraid I may

  • Require Q1 2012 data via Process chain

    Hi , I want to trigger a process chain daily which will get only Q1 2012 data. Is it possible via sm36 tcode. how can i achieve it. please suggest. Thanks.

  • HT2490 Mac shows me MobileMe where iCloud is supposed to be

    On my system Preferences my Mac shows me MobileMe where iCloud is supposed to be. I want to connect my Mac with my iPhone and everything says that I should go to System Preferences/iCloud, so how do I fix this?