SMTP And email_method php Not Work

blackhack3r4745

New Member
Feb 9, 2015
5
0
0
Dear Mrs,
When i use SMTP method for My Site the following error is:
Code:
SMTP -> FROM SERVER:220 Server1 ESMTP Exim 4.84 Sun, 15 Nov 2015 00:34:44
SMTP -> FROM SERVER: 250-Server1 Hello My-Server [IP-Server] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP 
SMTP -> FROM SERVER:220 TLS go ahead 
SMTP -> FROM SERVER: 250-Server1 Hello My-Server [IP-Server] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP 
SMTP -> FROM SERVER:250 OK 
SMTP -> FROM SERVER:250 Accepted 
SMTP -> FROM SERVER:354 Enter message, ending with "." on a line by itself 
SMTP -> FROM SERVER:451 Temporary local problem - please try later 
SMTP -> ERROR: DATA not accepted from server: 451 Temporary local problem - please try later 
SMTP Error: Data not accepted.
And When i use email_method = php for My Site the Not Work

My-Server: Centos7
Web Server: nginx 1.8
I Install { exim + dovecot + clamd + spamassassin } On My-Server


My nginx.conf :
Code:
server {
    listen      Server-IP:80;
    server_name MyDomain.com www.MyDomain.com;
    root        /home/UserSite/www/MyDomain.com/public_html;
    index       index.php index.html;
    client_max_body_size 5G;
    access_log  /var/log/nginx/domain/MyDomain.access_log combined;
    access_log  /var/log/nginx/domain/MyDomain.bytes bytes;
    error_log   /var/log/nginx/domain/MyDomain.error_log error;

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
        fastcgi_pass   127.0.0.1:9001;
        fastcgi_index  index.php;
        fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
        fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

    location / {
                if (!-e $request_filename) {
                        rewrite ^/(.*) /index.php?_page_url=$1 last;
                }
    }

    location /files/ {
        root    /home/UserSite/www/MyDomain.com/public_html;
        internal;
    }

    # these locations would be hidden by .htaccess normally
    location /core/logs/ {
        deny all;
    }

	# Authentication Login for admin page site
    location /admin/ {
        auth_basic "Authentication";
        auth_basic_user_file /home/UserSite/www/MyDomain.com/.htpasswd/.htpasswd;
    }

    error_page  403 /error/404.html;
    error_page  404 /error/404.html;
    error_page  500 502 503 504 /error/50x.html;

    location /error/ {
        alias   /home/UserSite/www/MyDomain.com/www_errors/;
    }

    location ~* "/\.(htaccess|htpasswd)$" {
        deny    all;
        return  404;
    }
}
Please help me to fix the problem.
Tanx.
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
not a big email server expert but do you want to try installing postfix and see if it works ?
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
can you run this command on your server terminal and see if you receive email, if no, check the error logs to see what you get ?

echo "test content" | mailx -s "test subject" [email protected]

Also make sure sendmail is running on your server.