Fedora Servers :: Unable To Connect Apache / Postfix And Php Mail Script

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


ADVERTISEMENT

Fedora Servers :: Force Php Mail() Through Postfix + Auth?

Mar 8, 2011

I'm a bit lost with the PHP/Sendmail configuration, maybe somebody could help me getting back on the right track. Following situation:

Postfix:

* accepts smtp on port 25 but from his own domains. Some policy and spamchecks through amavisd are made.

* accepts submission on port 587 and 465 from authenticated users only. Quota and spamchecks prevent outgoing spam.

So I'm enforcing a very strong outgoing spam-policy but the users are still able to use the php mail() function to send spam through the /usr/sbin/sendmail command.
My users have access to their own php.ini so my idea was to somehow enforce the delivery through the local postfix on port 587 or 465 and just let them enter their user/pass in their php.ini. (I suppose, their might be a cleaner-solution ).

Unfortunately, my configurations like smtp_host, port, user etc. are getting ignored if the sendmail_path line is active. But if I comment this line out, php just uses the default, which is the same as configured in the sendmail_path line - so it's active whether i use the line or not (setting it to an invalid command breaks the mail() function completely).

how can I enforce my anti-spam policy on the php mail() command?For my ssh users I just blocked the outgoing connection to localhost on port 25 which seems to work so far, but somehow the postfix-sendmail-wrapper just ignores this.

View 3 Replies View Related

Fedora :: Unable To Connect From Clients Computers To Mail Server For Receiving Mail?

Oct 15, 2009

I have installed F11 on my server bythis article! I have problem with certificatewhen I connectin from clients computers to my mail server for reciving mail! I have warning like this

View 2 Replies View Related

Fedora Servers :: Access Denied When Sending Mail - Postfix?

Jan 18, 2011

i have configured mail server with postfix with dovecot with no encryption:When connecting with Thunderbird imap is working fine. when sending email from another domain to this domain again it is fine. but when i want to send mail frommy domain to another it gives me error and this is /var/log/maillog:

Code:
Jan 18 18:23:09 srv1 postfix/smtpd[3991]: NOQUEUE: reject: RCPT from unknown[95.81.67.120]: 554 5.7.1 <Recipient email>: Relay access denied; from=<Sender> to=<Recipient email> proto=ESMTP helo=<[127.0.0.1]>

[code]....

View 1 Replies View Related

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 View Related

Server :: Configure Postfix To Relay Mail To Multiple Internal Mail Servers With Different Domains?

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

Fedora Servers :: Postfix : Some Users Considered As Spam By Certain Mail Providers?

May 21, 2010

I have an issue with postfix and my server.One account (mine) is not considered as spam by no one. But all the other users are treated as spam by yahoo, and hotmail. And I can't understand why.Here are the header from one user who sent an email to my yahoo account (treated as spam):

Code:
From userNAme Sat May 22 01:52:27 2010
X-Apparently-To: me@yahoo.ca via 98.136.183.25; Fri, 21 May 2010 14:52:55 -0700

[code]...

View 5 Replies View Related

Ubuntu Servers :: Can't Send Mail Using PostFix - Only Receive Mail

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

Ubuntu Servers :: Apache Virtual Host Unable To Connect

Jan 18, 2011

I've set up a server running Ubuntu 10.10 (desktop) with apache. Problem is: When I try to configure multiple virtual hosts I can only access the first one. I'm sure that I'm missing something basic in my setup, but I cannot seem to figure out what.

What I want is simply two virtual hosts, one only available on the LAN where I can test my php files and one "live" available from the outside.

Heres what I've done:

Installed Apache2.2
Copy /etc/apache2/sites-available/default -> /etc/apache2/sites-available/dev
Modified "dev" config DocumentRoot and Document to point to /var/www/dev
Modified "dev" config VirtualHost to <VirtualHost *:1337> (port change right?)
Modified "default" config DocumentRoot and Document to point to /var/www/live

[Code].....

Live works fine, but dev cannot connect (as if there is no server there).

View 2 Replies View Related

Ubuntu Servers :: Postfix Relay - Exchange Sends The Mail Instead Giving Recipient Mail A Valid Reverse DNS Lookup

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

Ubuntu Servers :: Migrate Postfix Mail Server To Exchange 2010 Mail Server

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

Ubuntu Servers :: Can't Get Mail With Postfix On 10.10

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

Server :: Unable To Send Mail Using Postfix

Jun 10, 2010

I have recently installed the ISPCP web hosting control panel. It seems that after a while running and testing I can receive but I cannot send e-mail. basically I get an error which goes

Code:

postfix/smtp[5939]: connect to alt1.gmail-smtp-in.l.google.com[72.14.213.27]:25: Connection timed out

I have, in the recent past, been able to send e-mail so I know that there is something that has gone wrong with my configuration, which I cannot. I post here my master.cf and my main.cf files as well as the mail.log file and the mail.warn....

Ubuntu Server 8.04 LTS 64x
spCP 1.0.4 OMEGA
build: 20100228
Codename: Priamos

View 2 Replies View Related

Software :: Postfix Unable To Receive Mail

Jun 26, 2010

I am using postfix in conjunction with the ispCP Control Panel. Here's some of the recent entries in maillog, when I try to send an email from my gmail address to an email address on this server (I underlined the email addresses).

Code:
2010-06-26T17:57:43.581654-04:00 li136-183 postfix/smtpd[30721]: fatal: No server certs available. TLS can't be enabled
2010-06-26T17:57:43.838633-04:00 li136-183 postfix/smtpd[30710]: warning: connect to 127.0.0.1:12525: Connection refused
2010-06-26T17:57:43.838677-04:00 li136-183 postfix/smtpd[30710]: warning: problem talking to server 127.0.0.1:12525: Connection refused .....

View 3 Replies View Related

Ubuntu Servers :: Postfix Mail Goes In Junkmail?

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

Ubuntu Servers :: Postfix: Mail Sent But Never Received?

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

Ubuntu Servers :: Postfix Configuration Can't Send E-mail

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

Ubuntu Servers :: Postfix Won't Accept Mail Anymore?

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

Ubuntu Servers :: Postfix Slow To Send E-mail

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

Ubuntu Servers :: PostFix Won't Send Remote Mail

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

Ubuntu Servers :: Cannot Receive Mail On Dovecot / Postfix

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

Fedora Servers :: Getting Error Message When Trying To Connect To Vncserver 'unable Connect To Socket: No Route To Host (113)'

Apr 26, 2011

I install and configure the vncserver following and reading 1000papers, but all of this present the same problem; when i try to connect to my vncserver,recive this mesage: unable connect to socket: No route to host (113) The OS version is Fedora Core 14 and tigervnc-server i try different solutions including:Allow TCP connection modifing files /etc/gdm/custom.conf and /usr/share/gdm/gdm.chemas Disable SELinux removing iptables Here follow the vncserver configuration:

[code].....

The ip address of the vncserver is correct because i can do ssh on it. Where or what can i do?

View 4 Replies View Related

Server :: Postfix Local Users Unable To Send Mail

Jul 13, 2011

We are using postfix for relaying our internal system generated mail to other domain through google apps. All client servers able to send mail through the postfix server, only user of local postfix server(root, etc) unable to send mail with command like mutt, mail.My detail configuration given below:

Code:

postconf -n

output

Code:

alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix

[code]....

View 8 Replies View Related

Ubuntu Servers :: Postfix Configuration - Send Mail To Other Domains

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

Ubuntu Servers :: Postfix Relay Mail For Local Users?

Mar 1, 2011

I have a mail server running Postfix and the problem I'm running into is that when trying to send mail, I get a "relay access denied" error.Inside my main.cf, I did not specify 'smtpd_recipient_restrictions' so by default, the variable is:

Code:
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
The 'mynetworks' variable looks like this:

[code]....

View 3 Replies View Related

Ubuntu Servers :: Setup Postfix Mail Server And Courier-imap/pop

Feb 23, 2010

Setup my postfix mail server and courier-imap/pop. My postfix server now is working with tls and saslauthd, I can send/receive email inside my domain as well as outside. However, I need two separate smtp and imap/pop3 server, I mean two machine - one with smtp function and one with imap/pop3 function working together.

View 4 Replies View Related

Ubuntu Servers :: Postfix Correctly Sends Mail Externally, Won't Receive It?

Oct 29, 2010

Alright guys, I've looked over every thread regarding this issue on this forum, and many others; yet I cannot find out why my mail is being bounced without error from my external gmail account.From what I've seen, you guys need to start off by seeing my postconf -n

Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases

[code]...

View 9 Replies View Related

Ubuntu Servers :: Send Mail Doesn't Postfix SASL Work

Nov 27, 2010

I'm running a server with Ubuntu 10.04 and I have installed postfix and courier. The server can recieve mail and I can fetch them using POP, but when I try to send mail it doesn't work. Postfix itself can send email if i telnet from localhost and I am using my ISP as a relay because they block port 25. I'm using outlook 2007 on my client computer and it just says that the server rejects the login attempt and tells me to check my username and password. Postfix listens on port 12 as well because the client connection also has outgoing on port 25 blocked. I have tried to use telnet to connect to the server, and I can connect. This is what I get:

[Code]....

Now what? I've tried searching for the answer but all I can come up with is AUTH PLAIN or AUTH LOGIN, but I don't know what to type after that.

View 2 Replies View Related

General :: Prevent Postfix From 'retrying' Emails To Yahoo - Mail Servers?

Jun 12, 2011

I have a problem with my VPS not being able to send any emails to Yahoo! addresses. Each time someone with a mail account tries to send something to a Yahoo! address, the email stays stuck in the mail queue and a 'delayed mail (still trying)' message is sent back to the user. I understand that Yahoo! has a tendency to block mail servers on a whim, but what I'd like to know is, how can I prevent Postfix from specifically retrying to send emails to Yahoo! mail servers? I don't want to stop retries to other mail servers.

View 1 Replies View Related

Ubuntu Servers :: Postfix Make Install - Error - Postfix: Fatal: Chdir(/usr/libexec/postfix): No Such File Or Directory

Mar 11, 2010

Here is what i do: make clean make makefiles CCARGS='-DEF_CONFIG_DIR="/opt/product/postfix-2.6.5/etc"

-DEF_COMMAND_DIR="/opt/product/postfix-2.6.5"
-DEF_DAEMON_DIR="/opt/product/postfix-2.6.5/libexec"
-DEF_MAILQ_PATH="/opt/product/postfix-2.6.5/bin/mailq"
-DEF_DATA_DIR="/opt/product/postfix-2.6.5/lib"
-DEF_NEWALIAS_DIR="/opt/product/postfix-2.6.5/bin/newaliases"
[Code]...

make install then i got this error: postfix: fatal: chdir(/usr/libexec/postfix): No such file or directory make: *** [install] Error 1 I don't understand why it's checking the usr/libexec folder for the daemons although I've set the folder to /opt/product/postfix-2.6.5/libexec in the makefile. Here is also the cat of my makedefs.out:

[Code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved