Ubuntu :: Php Mail() On Apache Using Postfix?
Apr 20, 2010
I get this error in my apache error.log file whenever i call the php mail() function. I can send mail from the system and i have updated the php.ini files mail path to /etc/postfix but i still get this error
error.log has this line after each call to php's mail() function sh: /etc/postfix: Permission denied
View 5 Replies
ADVERTISEMENT
Aug 12, 2009
I installed FC10, and configured everything to work with my static IP address [URL]. As far as email goes everything works except for the php script on my website. This script worked fine on my previous install, and it appears to actually submit the email as shown in the maillog:
Aug 12 14:21:02 myhome postfix/pickup[27581]: 37406BFDD9: uid=48 from=<apache>
Aug 12 14:21:02 myhome postfix/cleanup[27783]: 37406BFDD9: message-id=<20090812192102.37406BFDD9@www.myhome.com>
[code]....
I also created the following php script to test
<?
(mail ("test@myhome","Test message","this is a test"))
?>
And I was able to send successfully with this script with the only difference being it was sent by root rather than apache. This leads me to believe it's some sort of rights issue with the apache user. I wouldn't be surprised is SELinux was behind it all. I spent days and days after installing wordpress trying to get it to connect to mysql, and that turned out to be a SELinux issue.
View 5 Replies
View Related
Oct 4, 2010
so i set out to change the default smtp port the server uses because my ISP blocks port 25 and i need the email to work in outlook. this morning i could receive email, but not send it. so i did some research and thought that i needed to edit the master.cf file in /etc/postfix/ by commenting out this line: smtp inet n - n - - smtpd -oand replace it with587 inet n - n - - smtpd (587 being the port i want to use)somewhere along the lines postfix server stopped running and now i cannot get it to start.if i try using SSH it crashes immediately and if i restart it in simple control panel nothing happens
View 7 Replies
View Related
Jun 30, 2011
I set up my mail server using the guide here: [URL] I am able to receive mail, I can send mail locally, but I can't send to external addresses. This is in my mail.log: Quote: Jun 30 14:40:43 Server postfix/smtp[10725]: 2FD9322015BF: to=<myemail@gmail.com>, relay=none, delay=1634, delays=1484/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.65.27]:25: Connection timed out)
This is my main.cf:
[Code]...
View 6 Replies
View Related
Jan 12, 2011
The scenario: We have an external server that runs HTTP/DB servers for out shop system. Then, there's our local, in-house infrastructure that runs a.. yeah... Exchange 2010. The shop system on the external server needs to send mails to customers (order confirmations, invoices, etc.). seing as sending them directly through the local MTA (Postfix) would cause mail delivery problems because of reverse DNS issues, i've set the Postfix MTA to act as a satellite to our in-house Exchange Server, so the Exchange sends the mail instead, giving recipient mail servers a valid reverse DNS lookup.
Now, mails sent by the (proprietary, uneditable) shop system are relayed correctly and sent to the target e-mail address. My problem is: Mails not sent by the shop system, but by our own PHP scripts which run on that same external servers, are NOT relayed properly. So the Exchange is fine with the mails sent by the shop system, but not the mails sent by our scripts. This is what i get in the mail.log: The successfully relayed mail sent by the shop system:
[Code]....
View 2 Replies
View Related
Jul 27, 2010
I have setup a postfix mailserver and it seems to be working ok, we are only using this to relay mail to our forum users. Its not being used to recieve any email only send them out to the internet.
What is the difference between the mail.log and mail.info files? Can I turn one or both off? I see alot of messages like...
Just wondering what this string of log entries means? Also I am getting duplicates in the syslog file as well.
View 2 Replies
View Related
Aug 6, 2010
Two exchange servers internally. One is setup for example.com (192.168.1.10) and the other is setup for example2.com (192.168.1.20) Both are behind a single public IP.
I want to use postfix to sit in front of the two exchange servers. Postfix will accept mail for both domains and relay to the appropriate server. I have postfix installed with only defaults at this point.
View 2 Replies
View Related
Nov 19, 2010
I'm running SUSE linux Server version 11. I want to configure mail server with postfix & cyrus-imap. For that, i have read many documents in Internet by i met issues. I'm running DNS in this server & it's ok Now I cannont send mail through command line.
[Code]....
View 9 Replies
View Related
May 31, 2010
I'm running a Debian LAMP server and I am adding postfix. The initial config is working and I can send and receive mail both locally and over the WAN. The problem is that I cannot get mail delivered to the user's home directory using Maildir/. I have set the:home_mailbox = Maildir/ parameter in main.cf but mail still goes to /var/mail after Postfix reload. The system is now using Maildir/ instead of mbox but in /var/mail. I really want to get mail into the user's home directory.
View 6 Replies
View Related
Nov 3, 2010
I have a problem relate to posttfix.I want to mirgare postfix mail server to exchange 2010 mail server but I can't do it,u can help me.You can show me have to do configure postfix and exchange how to?
View 1 Replies
View Related
Mar 20, 2011
I've setup my server by following a ton of goods, and it seems to work ok, but I need to start using my server for email in order to receive orders placed via my website. I've followed this guide - [URL] I followed the steps above, and tested the mail server via telnet, and all seemed to be ok. I tried sending an email via Squirrelmail, from cs@thinclientwarehouse.co.uk TO my working email simon@c1systems.co.uk, but the server returned with the following message:
<simon@c1systems.co.uk>: host mail.c1systems.co.uk[95.128.128.129] said: 550-Verification failed for <cs@localhost.thinclientwarehouse.co.uk> 550-The mail server could not deliver mail to cs@localhost.thinclientwarehouse.co.uk. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 550 Sender verify failed (in reply to RCPT TO command)
View 14 Replies
View Related
Jan 10, 2010
I'm simply just having trouble sending mail with postfix. I have all my hostnames, rdns setup properly. I also have iptables open on port 25.
View 9 Replies
View Related
Dec 18, 2010
I am trying to install a mail server (postfix). I followed the instructions (up until SMTP, I do not want that) on ubuntu pages, without any result. I can send mail, but I can't get any.
View 4 Replies
View Related
Mar 15, 2010
I use Ubuntu Server 9.10 64bit
at first, sendmail was installed and everything was working great. all the email sent from forum and webform I host as been sent correctly in the reception box of the recipient. But I want postfix as MTA to do my delivery to all my virtual domain I host.
when sendmail is uninstalled and postfix installed and all services configured(php included) and restarted(apache included), when I send a email from command line or from web form, the email goes in junk mail for some ISP email address and for gmail and the email did'nt show at all for hotmail. but email sent from forum (phpbb) still goes in reception box like normal email do.
I tried do change the headers, who was working with sendmail, of the email sent from web form without success.
so I tried to uninstall postfix and reinstall sendmail, restarted all service and every thing was back to normal... email sent goes in reception box.
I tried it twice.... sendmail, postfix, sendmail, postfix and now back to sendmail for a working solution until I get postfix working.
I tried with spf entry in my dns, I tried allowed icmp packet from outside with iptables, I tried many different headers for my email. My ip is not blacklisted anywhere.
View 9 Replies
View Related
May 3, 2010
I installed and configured postfix per the guide on help.ubuntu.com. Everything seems to work fine with smtp and it says that my emails are being sent, but I never receive them.What could be causing this problem?The local mailbox shows that the email was sent.Mail.log shows that the message was delivered to the mailbox.
View 5 Replies
View Related
Apr 16, 2011
how the whole mail server thing works, and what software handles what job. From my understanding POP3 and IMAP are protocols to pull email from a mail server, and SMTP is used to push email to a server. There are many programs that I've seen involved with creating a mail server, but I'm trying to use just Postfix. Postfix can send and receive email right?
My server runs in my basement and runs Ubuntu Server 10.10. It uses Cherokee as its web server, and it runs several other servers as well (SSH, FTP, Git, etc). My goal is to set up a mail server so that websites I run such as a Redmine or a web forum can send emails to people (e.g. an activation email for a user registering on a forum).
Anyway, I set up postfix, and now my server can receive email. I've been able to send an email from my Gmail address to drew@minipenguin.com (my server), and it works. However, if I try to send email from drew@minipenguin.com to my Gmail, it never goes through. I don't care about receiving email, as my only goal is to be able to send it.
View 5 Replies
View Related
Apr 23, 2010
I am trying to make my elastix voip server to send and receive e-mails. It has built in Postfix mail server, and i tried to configure it.I am not sure about some parameters, such as domain and hostname.Either way, i will attach my config file and the errors that i get from log and mail queue as i get them from webmin.
View 7 Replies
View Related
Jul 1, 2010
I set up my Postfix/Dovecot Sasl implementation according to the Server Docs. Now it worked both for SSL POP3 and sending via SSL SMTP. But recently it simply stopped accepting my mail, I can't send out.
View 9 Replies
View Related
Jan 21, 2011
I'm on Ubuntu 10.04 and using Postfix 2.7 with Dovecot's SASL. The issue is when sending e-mail it takes a bit of time to send. LIke for it to get connected it takes around 15.20 seconds. How can I reduce this delay so it can be sent faster?
View 2 Replies
View Related
Feb 9, 2011
I have spent the last 24 hours searching the internet for an issue to resolve my problem. I have tried the verious solutions posted by people and followed endless amounts of tutorials
In the end i followed [URL] line by line
This allowed me to recieve email fine, but only send email locally.
I either get a "Relay access denied" message, or as of last night is is now "Recipient Address Rejected"
Below is a link to my Main.cf file
[URL]
View 3 Replies
View Related
Mar 10, 2011
I do not know why I could send email outside but not receive. I use relay to my ISP that port 25 is blocked by my ISP. What can I doing with configuration when it should be works to receive mail? Okay, I have sent a test e-mail between localhost and it works. I can send from mailserver to my gmail without problem. So why I cannot receive email from gmail?
View 2 Replies
View Related
Feb 28, 2010
Iv setup a postfix mail server.. and setup my MX records within DNS. I configured the posfix mail server with the Mail accounts.I sent the accounts a test message. They end up in the Maildir for the user. But for some reason i cannot POP the mail server from a client. I can telnet to the SMTP server.. But cannot telnet to the POP3. Iv opened the ports in the firewall correctly. and even tried disabling the Firewall but when i try to Telnet to port 110 or POP port 110 i get an error saying "connection refused"
View 1 Replies
View Related
Mar 11, 2010
recently i configure postfix on my fedora core 9 system i want to send mail from one user to another till now i did not create any user, i just configure the main,cf file with the help of some link i found on internet
here is my main.cf file
# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf").
#
# For common configuration examples, see BASIC_CONFIGURATION_README
[Code]...
i dont know what i should write about my main.cf file so i post the whole file here.
so can anyone tell me is that the configuration is correct and and how do i create new user to my domain name and how can i send and receive mails from one user to another user using postfix
View 118 Replies
View Related
Apr 4, 2010
My problem is that I cannot send mail with postfix. For all mail I get connection timeout Example: (delivery temporarily suspended: connect to [URL] Connection timed out)
View 13 Replies
View Related
Jun 4, 2011
I'm trying to get my network set up. There is an internal network separated, by a dedicated firewall, from the DMZ. I'm trying to send mail from the internal network, using mutt, to the postfix server on the DMZ.No firewall is set up yet on the dedicated firewall(the whole network is, at the moment, protected by the border router) Mutt was installed with the smtp, pop,imap,ssl,sasl,gdbm options.
I thought the fact that it was compiled with the SMTP flag set would enable me to either send mail without an MTA on the same machine that mutt is installed on(internal network host) Or that i could just specify the path to the sendmail binary and not have to start postfix as a daemon ?I've found out that sendmail is supposed to be a postfix command. So i added:
Code:
sendmail="/usr/sbin/sendmail"
to /Users/me/.mutt/muttrc
But now when i start mutt i get an error saying:
Code:
/usr/sbin/sendmail: Unknown command
Obviously i started postfix before firing up mutt The permissions say that i should be able to execute sendmail as a normal user.But mutt isn't dealing with it, even though permissions appear to be correct.What do i need to do to get mail, from a normal user, over my LAN working(with mutt and postfix)?Once i have this working then i can get a proper domain name and configure postfix on the DMZ for SASL+TLS etc etcBTW i can send mail to postfix from internal network using
Code:
telnet serverhost 25
etc
View 3 Replies
View Related
Jan 21, 2011
telnet localhost 25 when rcpt to:mike@test.com ,report error: 451 4.3.0 <lisi@test.com>:Temporary lookup failure
View 1 Replies
View Related
Jul 21, 2010
I have postfix installed on 2 different boxes for 2 different domains in my network. The 2 boxes are in a single network which has a PIX firewall as the internet gateway. In the PIX the external IPs are being mapped with internal IPs of the corresponding boxes. In fact, the boxes are able to resolve the IPs of each other from the DNS. But none of them can contact each other using external IPs. They don't even ping each other with external IPs, but works fine with internal IPs. When investigated on the issue, I found that this cannot be called an issue, but this is how a network is designed (Not sure if I am right). But all the boxes can contact each other using their internal IPs.
The tweak in my mind is to specify the internal IP of the other mail server in the same network, to postfix. Is there anyway to do this?
I tried specifying the internal IP in /etc/hosts, but did not help. I came to a conclusion that postfix is not considering /etc/hosts file (Again I am not sure).
View 2 Replies
View Related
Aug 9, 2010
what do I need to change in postfix/ dns to send email to one one of the email server hosted by 1and1.
I'm using zenoss to monitor system/ network and devices. I wanted to setup email notification , so I installed postfix. All works fine when I use my private account on yahoo or hotmail. but when I specify email account that is hosted by 1and1 I receive error 421. "
xxxxmyserver postfix/smtp[5399]: B0A5B22A06: to=<1and1emailaddress>, relay=mx00.1and1.co.uk[212.227.15.169]:25, delay=0.8, delays=0.04/0.02/0.62/0.12, dsn=4.0.0, status=deferred (host mx00.1and1.co.uk[212.227.15.169] said: 421 invalid sender domain 'xxxxmyserver' (misconfigured dns?) (in reply to RCPT TO command))
View 1 Replies
View Related
Oct 7, 2010
Im running Ubuntu server 10.04 lts
Im trying to get postfix to receive mail from one address and pipe it to a PHP file for a help desk software called Trellis Desk.
They recommended that I use Cpanel but its not free and my boss is not willing to pay for it. I need a free solution.
I know my way around Linux but Im no professional
View 1 Replies
View Related
Nov 5, 2010
Let me start off by saying I am experienced with computers, though my knowledge of Linux and networking is limited. I've just recently started setting up a Ubuntu 10.04 server to be a SMTP server. I've followed this guide by the letter: [URL] What I've attempted, to test the server, is the following:
telnet localhost 25
ehlo localhost
(this returns all the desired information) I then do a MAIL FROM my domain which is accepted, and try to do a RCPT TO an external mail server (gmail) to test sending an email. I am then told 'Relay Access Denied'. I'm sure that there's something fundamental that I'm either not understanding or not doing correctly. I simply want an SMTP server that can send to other domains. What do I need to do?
View 1 Replies
View Related