Jump to content

Has anyone sent email with php mail function installing postfix mail server ?


colap

Recommended Posts

Has anyone sent email with php mail function installing postfix mail server ?

 

Please post you /etc/postfix/main.cf .

 

Please elaborate/explain with example how you did and what you did .

 

Email will be sent to any email address from '[email protected]' .

 

I have searched in google but could not find any solution .

 

Here is my /etc/postfix/main.cf

myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_auth_only = no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.myriderdomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myriderdomain, localhost.$myriderdomain, localhost
relayhost = 
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4

 

hostname = mail.myriderdomain.com

/etc/mailname = mail.myriderdomain.com

/etc/aliases = root:user1

 

I tried ,

mail -s 'subject' [email protected]
body
.

Nov  5 13:16:39 mail postfix/smtp[7163]: DBC468AAA4: to=<[email protected]>, relay=none, delay=56061, delays=55956/0.02/105/0, dsn=4.4.1, status=deferred (connect to mta7.am0.yahoodns.net[98.137.54.237]:25: Connection timed out)

 

Can anyone help me to fix this error ?

There are plenty of tutorials around the web for doing this. These boards are not the place to ask for personal tutorials.

 

I have searched in google, spent couple of days , but can't solve this.

 

It's not sending email.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.