Solved

Trying to send mail  with  PHP Mail / Postfix / Ubuntu

Posted on 2014-07-22
7
133 Views
Last Modified: 2015-02-17
I have just installed Ubuntu server and have installed postfix  i am just wanting to be able to send mail via web forms , however this does not work via PHP forms or by commandline

I can login to WEBmin and send mail which works ok,

The errror message when mail fails is
said: 550 authentication required (in reply to RCPT TO command)

Any help on where to start looking or configuration settings to check would be appreciated

Regards
0
Comment
Question by:n2989
  • 4
  • 2
7 Comments
 
LVL 13

Expert Comment

by:Sandy
Comment Utility
This means you need to configure SASL auth in postfix config and post that you need to use while sending out the mails.

Ty/SA
0
 
LVL 13

Expert Comment

by:duncanb7
Comment Utility
If it is   Outgoing SMTP Authentication , please take a look at this
http://wiki.zimbra.com/index.php?title=Outgoing_SMTP_Authentication
And do the command as this:
su - zimbra
postconf

check your value's of these across the board
smtpd_use_tls
smtpd_tls_auth_only
smtpd_tls_key_file = /opt/zimbra/conf/smtpd.key
smtpd_tls_cert_file = /opt/zimbra/conf/smtpd.crt

If you want to get some more output: smtp_tls_loglevel
1- Disable logging of TLS activity.
2- Log TLS handshake and certificate information. (what you have currently)
3- Log levels during TLS negotiation.
4- Log hexadecimal and ASCII dump of TLS negotiation process.
5- Log hexadecimal and ASCII dump of complete transmission after STARTTLS.

Hope understand your question completely.If not, please ,point it out

Duncan
0
 
LVL 13

Expert Comment

by:Sandy
Comment Utility
BTW is it Zimbra installed on system ?

Ty/SA
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:n2989
Comment Utility
Hi Sandy ,

no Zimbra is not installed , do i need it ?  I am not looking to set up a complete mail server just a mechanism to send mail from various forms we have.  This is for an Intranet we have

Thanks
0
 
LVL 13

Expert Comment

by:Sandy
Comment Utility
No, you don't need it.. i believe you postfix setup is fine.. just use client auth from mail client to send the mails ...

Which client you are currently using ? check there must be option to send the messages with auth.

Ty/SA
0
 

Author Comment

by:n2989
Comment Utility
Ok problem is fixed, I installed sendmail via the WEBmin panel rather than command line as i had been doing previously and everything just worked, no idea why except that posssibly a module was not installed via commandline that was installed by WEBmin.
0
 
LVL 13

Accepted Solution

by:
Sandy earned 500 total points
Comment Utility
perfect :)

TY/SA
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IPA client Config problems 2 97
How to clone Linux server? 15 63
Help needed with BIND9 DNS on Ubuntu. 22 65
Virtual Box issue 6 49
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now