Fedora :: SELINUX And Sending Email Using PEAR
Dec 17, 2010I've been trying to get PHP to send an email using PEAR's mime mail and have been unable to get it working.
View 3 RepliesI've been trying to get PHP to send an email using PEAR's mime mail and have been unable to get it working.
View 3 RepliesI have pear installed, but I'n not sure I have it configured properly.
When I do a phpinfo(), no where are the settings for pear (meaning where it's located). If I recalled there is supposed to be a setting displayed there for PEAR.
I am trying to setup APC on my Fedora 7 server but cant install php-pear. There are loads of sites explaining how to do this but they all use "yum install php-pear" which yum cant seem to find??
root@fedora7 [/etc/apt]# yum install php-pear
Loading "fastestmirror" plugin
Repository base is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: p3mirror01.prod.phx3.secureserver.net
code....
I host a webpage from my PC, and I was having all kinds of issues trying to get it to send emails. These steps send and receive the email through a gmail account. This page saved me.
Here are the simple steps
0. get a gmail account
1. install pear
Code:
sudo apt-get install php-pear
2. Install pear packages:
(I'm not really sure what this does, but I did it, and everything is working)
Code:
sudo pear install -o Mail
sudo pear install -o Net_SMTP
3. run php script to send email.
Code:
<?php
// Include the Mail package
require "Mail.php";
// Identify the sender, recipient, mail subject, and body .....
I'm attempting to send email with a PHP application I got from a textbook. Do I need to start an email server in order to get the application to work?Using SuSE 11.2
View 5 Replies View RelatedI'm attempting to send email used a textbook PHP application. The application fails to send an email.Do I need to setup an email server to get the ap to work?Right now, I'm getting email through Kontact via my web host, Yahoo mail and Google mail.
View 2 Replies View RelatedHow is it possible to send email using the "mail" program? I tried:
echo "testing" | mail -s "test" myaddress@gmail.com
But nothing happened. I made sure that the sendmail daemon was running before I tried. Is there anything else that I have to set up first?
Sent an email by using telnet on port 25 from the terminal. Telnet states my message was sent but I never got it. Is it on the hard disk somewhere. Is there a log file? Where did my email go? Did it go into the ehter? I opened port 25 on my firewall through gnome by selecting 25/smpt checkbox as a trusted service.
View 8 Replies View RelatedHow to configure my home linux server, as an email server, and be able to send email to hotmail, please?. I have done this before, but I never managed to do it so hotmail accept emails coming from my linux server.
View 5 Replies View RelatedI am working happily with Fedora 8, evolution chatting happily to exchange 2003, calendar sync the works...impressed. This continued through Fedora 9 (though a little bumpy as all odd numbered Fedora releases are). On to Fedora 10, yes works a treat out of the box (DVD). A couple of updates to evolution later, through yumex (fedora updates), and evolution has stopped sending email to the exchange server. It's also touch and go whether I can read email using OWA.
On pressing 'Send/Receive' evolution pops the error,
Error while performing operation.
Exchange transport can only be used with Exchange mail source.
How could I back out these evolution updates?
I'm trying to install a package (validate) from pear.
but the command sudo pear install validate fails with error:
PHP Fatal error:Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165
Looking around on the internet I found a bug report on debian:url
The fix is to update php5.
So now the question:
How do I update php5 or apply the patch mentioned in this bug report?
i configured sendmail with squirrelmail in RHEL5.3
it is working fine. i can send the mail and receive the mail .
but when i try to send the mail a selinux error is coming[but mail is sending successfully ]. i don't under stand this message.
Quote:
Summary:
SELinux is preventing sendmail (system_mail_t) "read" to eventpoll (httpd_t).
Detailed Description:
SELinux denied access requested by sendmail. It is not expected that this access is required by sendmail and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access.
Allowing Access:
Sometimes labeling problems can cause SELinux denials. You could try to restore the default system file context for eventpoll,
restorecon -v 'eventpoll'
If this does not work, there is currently no automatic way to allow this access.Instead, you can generate a local policy module to allow this access - see FAQ(url) Or you can disable SELinux protection altogether. Disabling SELinux protection is not recommended.Please file a bug report (url) against this package.
Additional Information:
Source Context system_u:system_r:system_mail_t
Target Context system_u:system_r:httpd_t
Target Objects eventpoll [ file ]
Source sendmail
Source Path /usr/sbin/sendmail.sendmail
Port <Unknown>
code....
When running
Pear upgrade
The following error is raised:
Having one issue with evolution not showing html websites showing up in email like verizon sending a promo. I have gone to edit, preferences, mail preferences, html messages and have always load images from the internet chosen. I have also added sender to contacts. Even if I right click message and tell it to dload images it doesn't.
View 1 Replies View RelatedYou can find a list of all the booleans for SELinux (Fedora 10) using getsebool -a My question is, is there a reference online that describes each one. Most of obvious but it's one of those "I have to know because it's there situation).
View 5 Replies View RelatedI have designed and one form and php code to send mail. I am developing this in my localhost, So now i want to send email from my localhost to test my programming. I googled and i find something like editing "php.ini" file. But it didnt work for me.
View 9 Replies View RelatedHad anyone tried downloading a free SMTP server from the web and use it to send emails in nagios, when the services are down, an email notification will be sent.Right now i need a smtp server in order for me to send email notifications, are there any recommended ones?
View 7 Replies View RelatedI need to send a fax to my doctor but I don't have a fax machine.
Is there a way to accomplish this using Slackware 13.37?
We use mutt to send out emails.mutt -s "Test" -e "Content-Type: text/html" test@example.com < message.htmlWe send out our email updates in HTML format. We would like to send emails as multi-part containing both a text version and an html version. How do we create such a multipart message in Linux when the email subject, and HTML and text versions of the email body are given?Can we use mutt to send the multipart email created in step 1, from the linux prompt?
View 1 Replies View RelatedBasically, I think my Internet crashed while sending an email via Evolution and now whenever I open Evolution, or try and receive any new email it just sits there sending this email - it reaches 100% so I can only assume it has actually sent the email.
There's a button to "Cancel the current mail operation" though it doesn't appear to be doing anything; the email is still being "sent" each time.
This would be pretty tedious for the guy I sent the email to.
Has anyone had similar issues and knows of a fix?
How can I send an email from localhost via the terminal? I don't need pop just smtp. I believe this can be done with postfix which I have just installed but what is the command to input via the terminal, on my centos box I use the following to send the contents of some files which works just fine but what about sending through postfix on ubuntu?
Code:
sudo tail -50 /home/user/.bash_history | mail -s "bash history" email@mail.com
here is a fragment of a bash that i have to send an email when a back Up is made. basically a usr runs the sh - it asks for the job num and I read that from standard in . I do a tar of the drv to tape and I wish to send an email that job such and such has happened. My problem is : the subject of the email. I can set it - but if i try to use a var ( as in the $jobNum ) that Does work in the mail body - the subject comes out blank. I have also tried to buld a text file and shove that in the SUBJECT. my Q is how can I use a var in the subject.
# email subject
### so I have tried bulding and reading a tmp file -no works
EMAILSUBJECT="/tmp/emailsubject.txt"
echo "backup job" $jobNum >$EMAILSUBJECT
[code]....
I'm using Linux 11.04 and just installed the most recent version of Postfix. I'm trying to send a simple email (through a relay) but when I run the command
sendmail davea@mydomain.com FROM: fromemail@gmail.com SUBJECT: hello world this is a test email .
It just hangs there. There is nothing in /var/log/mail.log or in any of its accompanying files.
How to set outgoing mail limit? And what is the default value?
View 2 Replies View RelatedI cannot send an email link in Namoroka. I go to file-send link and nothing happens. I tried to find the problem by about:config in Namoroka. I just found /usr/bin/mozilla-thunderbird. With my limited knowledge I do not know what else to look for.
View 14 Replies View RelatedI have sendmail setup and it works fine sending emails to outside email addresses. When I try and send email to our internal groupwise server the mail never gets there and I get an error message in the log user unknown.
View 1 Replies View Relatedi have a problem regarding our email server. all the users can send email but they cant received mail. .when hitting send receive on outlook there were no error found. .i have already reboot the server and restarted the sendmail services but still same problem.
View 1 Replies View RelatedSo I have Postfix working great and I've always used webmail if I needed to send email from PC's outside of $mynetworks. So fast forward to today where I got my 1st Android powered mobile phone and I can configure the Android mail client to send/receive IMAP email but my question is do I need to become an open relay to allow my random wireless providers dynamic range of IP's to send mail via Postfix? Seems extremely vulnerable and scary to think I would have to allow my providers IP range to relay mail via my MTA. I started reading a bit and I think I need SASL authentication and since both Postfix 2.8.1 & Dovecot 2.0.11 are both configured / using TLS, is there anything else I would need or you recommend for sending email from my Android powered mobile?
View 2 Replies View RelatedI can send mail through telnet and the recipient receives the email, but I cant send it through PHP.
View 6 Replies View RelatedI use sendmail using my server. I hosted my site I just bought a domain name. Everytime I send mail I saw in my log files localhost.localdomain. How can I change this hostname in sending my mail.
here's the log:
From MAILER-DAEMON@localhost.localdomain Fri May 8 16:30:23 2009
Return-Path: <MAILER-DAEMON@localhost.localdomain>
Received: from localhost (localhost)
by localhost.localdomain (8.13.1/8.13.1) id n488UNlD006632;
[code]....