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 'no-reply@yourhomelocaldomain.com' .

 

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' xxx@xxx.com
body
.

Nov  5 13:16:39 mail postfix/smtp[7163]: DBC468AAA4: to=<xxx@xxx.com>, 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 ?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.