Sponsored Content
Special Forums IP Networking Proxy Server How to send mail (sendmail) for php mail()? Post 302934220 by Corona688 on Thursday 5th of February 2015 11:51:10 AM
Old 02-05-2015
sendmail on your system is just ssmtp.

ssmtp won't work until you configure it. See all those 'not sets'? They're not set.

You need to set at least 'mailhub', 'AuthUser', and 'AuthPass' in ssmtpd.conf for it to try to connect to a mail server. What those are, depends on what email and mail server you want it to connect to.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies

2. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

3. Shell Programming and Scripting

Pull E-mail address from file, send e-mail

Hello, I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail. How can I use the following awk statement in a perl script? grep UNIXadmins /root/mail.conf | awk '{ print $2}' and use the output to send a e-mail. Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies

4. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

5. AIX

Able to send mail without running MTA (sendmail)?

Hi, I am facing a (for me and coworkers) strange behaviour. When I stop sendmail on a plain AIX 5.3 testing box (there is definetly no sendmail process left running anymore), I am still able to send mails to remote addresses via the mail command. I tried that on another box which is not a... (6 Replies)
Discussion started by: zaxxon
6 Replies

6. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

7. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

8. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

9. UNIX for Dummies Questions & Answers

Configure sendmail to Only send mail to one domain

On both Solaris 10 and RHEL, we would like to configure sendmail in such a way that the email sent from the server should only go to a particular domain. For eg. We want our server to ONLY send the mail to <user_name>@abc.com. All other domains should be blocked/restricted. The server should not... (0 Replies)
Discussion started by: sk2code
0 Replies

10. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
SSMTP(8)						      System Manager's Manual							  SSMTP(8)

NAME
ssmtp, sendmail - send a message using smtp SYNOPSIS
ssmtp [ flags ] [ address ... ] /usr/lib/sendmail [ flags ] [ address ... ] DESCRIPTION
ssmtp is a send-only sendmail emulator for machines which normally pick their mail up from a centralized mailhub (via pop, imap, nfs mounts or other means). It provides the functionality required for humans and programs to send mail via the standard or /usr/bin/mail user agents. It accepts a mail stream on standard input with recipients specified on the command line and synchronously forwards the message to the mail transfer agent of a mailhub for the mailhub MTA to process. Failed messages are placed in dead.letter in the sender's home directory. Config files allow one to specify the address to receive mail from root, daemon, etc.; a default mailhub; a default domain to be used in From: lines; and per-user From: addresses and mailhub names. It does not attempt to provide all the functionality of sendmail: it is intended for use where other programs are the primary means of at last mail delivery. It is usefull with pop/imap, or to simulate the Sun shared mail spool option for non-Sun machines, for machines whose sendmails are too difficult (or various) to configure, for machines with known disfeatures in their sendmails or for ones where there are ``mysterious problems''. It does not do aliasing, which must be done either in the user agent or on the mailhub. Nor does it honor .forwards, which have to be done on the recieving host. It especially does not deliver to pipelines. OPTIONS
Most sendmail options are irrelevent to sSMTP. Those marked ``ignored'' or ``default'' have no effect on mail transfer. Those marked ``unsupported'' are fatal errors. Those marked ``simulated'' are not errors, but the result is for the program to exit with an informative message. A sort of fatal non-error. -4 Forces ssmtp to use IPv4 addresses only. -6 Forces ssmtp to use IPv6 addresses only. -auusername Specifies username for SMTP authentication. -appassword Specifies password for SMTP authentication. -ammechanism Specifies mechanism for SMTP authentication. (Only LOGIN and CRAM-MD5) -ba (unsupported) ARPANET mode. All input lines must end with a LINEFEED, and all messages will be generated with a CR-LF at the end. Also, the ``From:'' and ``Sender:'' fields are examined for the name of the sender. -bd (unsupported) Run as a daemon. -bi (ignored) Initialise the alias database. -bm (default) Deliver mail in the usual way. -bp (simulated) Print a summary of the mail queue. -bs (unsupported) Read SMTP commands from stdin. -bt (unsupported) Run in address test mode. -bv (unsupported) Verify names only. -bz (unsupported) Create the configuration freeze file. -Cfile Use alternate configuration file. -dX Set debugging value to X. -E (ignored) Don't trust userid of sender. -Ffullname Set the full name of the sender. -fname Sets the name of the ``from'' person. This option is valid only if no From: line is specified within the header of the email. -h (ignored) Set the hop count to N. -m (ignored) Ignore originator in alias. -Mid (ignored) Attempt to deliver the queued message with message-id id. -N dsn (ignored) Set delivery status notification conditions to dsn. -n (default) Do not do aliasing. -oAfile (ignored) Use alternate alias file. -oc (ignored) Delay ``expensive'' connections. -od (ignored) Set the delivery mode to interactive/synchronous, background or queue (Always interactive). -oD (ignored) Run newaliases if required. -oe (ignored) Set error processing to mail, write, print or quit. (Always print). -oFmode (ignored) The mode to use when creating temporary files. -of (ignored) Save UNIX-system-style ``From'' lines at the front of messages. -ogN (ignored) Set group ID to use when calling mailers. -oHfile (ignored) Set SMTP help file. -oi (default) Do not take dots on a line by themselves as a message terminator. -oLn (ignored) The log level. -om (default) Send to ``me'' (the sender) also if in an alias. -oo (unsupported) If set, this message may have old style headers. -oQqueuedir (ignored) Select the directory in which to queue messages. -ortimeout (ignored) The timeout on reads. -oSfile (ignored) Save statistics in the named file. -os (ignored) Always instantiate the queue. -oTtime (ignored) Set timeout on messages. -otstz,dtz (ignored) Set the name of the time zone. -ouN (ignored) Set the default user id for mailers. -q[time] (simulated) Process the queue. -rname Same as -f. -Rstring (ignored) Process queue for recipient. -R return (ignored) Set the amount of the message to be returned if the message bounces. -t Read message, searching for recipients. ``To:'', `Cc:'', and ``Bcc:'' lines will be scanned for people to send to. Any addresses in the argument list will be suppressed (not supported). -v Go into verbose mode. -V Say version and quit. REVERSE ALIASES
A reverse alias gives the From: address placed on a user's outgoing messages and (optionally) the mailhub these messages will be sent through. Example: root:jdoe@isp.com:mail.isp.com Messages root sends will be identified as from jdoe@isp.com and sent through mail.isp.com. FILES
/etc/ssmtp/ssmtp.conf - configuration file /etc/ssmtp/revaliases - reverse aliases file SEE ALSO
RFC821, RFC822, ssmtp.conf(5). AUTHORS
Matt Ryan (mryan@debian.org) Hugo Haas (hugo@debian.org) Christoph Lameter (clameter@debian.org) Dave Collier-Brown (davecb@hobbes.ss.org) BUGS
sSMTP does not support exception lists to the -t option (never seen it used). sSMTP will fail if the mailhub is unreachable. Last change: 4 February 2005 SSMTP(8)
All times are GMT -4. The time now is 05:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy