OpenSUSE Network :: Configured PHP To Use Sendmail - No Email Sent

Feb 2, 2010

I am brand new to sendmail. I have a web application running on APACHE2. I'm told that it uses a PHP mail function to send emails for notifications. I configured my php.ini to use sendmail by adding the following line:
sendmail_path= /usr/sbin/sendmail -t -i (I've tried it without the i as well)
As far as the sendmail configuration is concerned, I used the GUI interface provided in the KDE environment (labeled Mail Transfer Agent). I inputted my outgoing mail server's IP address and login information. I also unchecked TLS since my mail server does not use that.

The problem is that no email ever gets sent. The web application states that the email was successfully sent. But I think its because it hands the email to PHP (leaving the responsibility to PHP)...then it believes the email is sent. My mail server uses plain text for authentication. Im not doing anything special with it. I told my mail server to accept connections from my linux box. I also checked my mail server's logs and see that no record of any connection from my linux server is logged.

So it seems my linux server isnt even communicating with my mail server. Both boxes are on the same network. My linux box can ping my mail server just fine. Firewall is disabled. How do I correctly configure sendmail to use an outgoing SMTP server to send emails. And how do I verify that setting works without using the web application I installed? (I want to verify whether or not the issue is with sendmail or the web application). Where do I find sendmail's logs so I can check to see why it's not hitting my mail server?

View 9 Replies


ADVERTISEMENT

Server :: Cant Receive Mails In Inbox When Configured With Sendmail

Oct 22, 2010

I installed sendmail in my fedora 7 system. i took the advice as provided in this url [url] I started with "Configuring s`endmail"

Then i went with installing MailScanner without going to clamav and spamassasin installation as i don need it.

I just configured my local domain and assigned a my own IP address. But there was nothing mentioned with configuring the port number. So i just went with "netstat -nl" command. And it showed that my IP is lisening on port 53.

I created 2 users for the domain and i sent mail via telnet. The mail entry got entered in maillog file. But i receive multiple unwanted entries that mail is sent from "root" to "root". But i didn't bother about that.

I proceeded with the next step of configuring the two users on thunderbird. I configured with pop3 on port 53 with the localdomain. Now i sent mail from one user to the other. The mail entry got stored in maillog but i couldn't retrieve the mail on my inbox.

But the mail gets stored in /var/mail/<user>

View 1 Replies View Related

OpenSUSE Network :: X64 Xen Bridge Configured But No Br0 And No Internet Connection?

Mar 12, 2011

I have installed opensuse 11.4 xen on a HP ML115 G5 AMD Opteron server, which previously hosted a fully working opensuse 11.3 xen. The problem seems to be that br0 is not showing as a bridge device in network settings. When I first installed opensuse 11.4 networking was available via dhcp, I then installed the xen tools and answered the prompt to create a bridge, it was only when I re-booted the system that I lost my network connection.

Going back into network settings I compared the settings to an existing working opensuse 11.3 xen install that I have and noticed that br0 is not showing as a bridge device in network settings so cannot be selected, in fact no bridged devices are shown.

View 5 Replies View Related

OpenSUSE Network :: Nokia E65 Internet Connection - Modem Is Not Configured ?

Jun 12, 2010

Trying to move from Windows to OpenSUSE. I have installed OpenSUSE 11.2, and am having a hard time trying to connect to the internet using my nokia E65. I have tried to configure the modem thru YaST and it keeps showing that my nokia E65 modem is not configured, but adds another modem every time I configure using the edit button i.e. modem0, modem1 etc.

When i finish the configuration I get pop ups on the bottom right conner:
Notification from network management
WLAN interface attached
Network interface attached

But nothing happens afterwards. When I connect the phone it shows that it is recognized as a modem (probably). but when I click on the icon so it connects to my service provider "econet" it just says activating with a red x in the conner, and still nothing happens!

The following are the screenshots (still not sure how to attach files on this forum), may someone assist, with that too.

I really want to move from Windows but this is what's stopping me. the sooner I connect to the Internet through my phone, the sooner I leave Windows, since it's the only way I can connect to the internet.

I have tried wvdial, and I got the following:

View 9 Replies View Related

General :: Display The Last Email Content With Configured Fetchmail?

Mar 11, 2011

I would like to see the last received IMAP email and its content with Fetchmail. Is it possible?

View 3 Replies View Related

General :: Email Notification - Configured SVN Server On Suse 10

Feb 16, 2011

I have configured SVN server on suse 10 , My layout is like: multiple projects in a single repository.

I want that the corresponding users of the projects will get email notification on commit in their projects.

View 4 Replies View Related

Ubuntu :: Evolution Does Not Find Configured Email Account Anymore

Oct 18, 2010

I had configured a gmail account in evolution and used it successfully until recently when after a restart evolution asks me again to configure an email (Evolution setup assistant wizard) again.I already have my email configured but something must be preventing evolution to find my email account. What can I do to recover all that?My .evolution/mail folder still has all the data for example (got there some hundreds MB still). and I also have there other folders: addressbook, calendar..etc

View 8 Replies View Related

OpenSUSE Network :: Sendmail - Large Messages Only Queueing?

Jun 24, 2010

I've got a strange sendmail problem I've never come across before...Messages less that 2500 lines (approx 169kb) are sent correctly - anything else goes straight into the queue and is never delivered. The server sits in a intranet, is not connected to the outside world, and forwards its mail to a smart host.All configuration has been done through yast, so there are no unusual settings. I've run sendmail on SuSE from version 6 upwards, and this is the first time I've come across this - it's driving me potty

View 4 Replies View Related

OpenSUSE Network :: Sendmail LDAP Integration (failure)?

Jun 29, 2011

I'm trying to integrate sendmail and openLDAP together. I've followed the guide in O'Reilly's LDAP book and my lookups are good. I think my problem is virtual users. What I'm trying to accomplish is that if an email is sent to joe@host.tld and there is an entry in LDAP for joe then it'll be accepted. Right now, it'll only accept emails only for system users. Below is my sendmail.mc (most comments removed)

Code:
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
dnl ## I have a real one
define(`SMART_HOST', `my.smart.host')dnl
dnl #
define(`confDEF_USER_ID', ``8:12'')dnl

[Code]...

View 2 Replies View Related

Software :: Sendmail: Email Redirection

Jan 31, 2010

I have a test application that sends out email. It's configured to send it through the sendmail installed on the local machine (distro: RedHat 4.8; sendmail version 8.13.1). The email addresses are external to the machine. I would like to stop most of those emails. I can't use the /etc/aliases file, because that methodology only works for operating system addresses/userid's on the local machine.

I'd like to block certain addresses from getting emailed out, so that users don't get spam from a test server that's been "cloned" from a production server. On the other hand, I don't want to turn off email altogether. I'm pretty sure that if I installed SpamAssassin I'd probably be able to rewrite certain addresses. But SpamAssassin is bloatware for what I want to do. If native sendmail is not able to filter out from sending certain emails based on the "To: " header (in the envelope) is there an app that uses sendmail's milter API that will? I've been away from heavy use of sendmail for awhile, so it had been awhile that I'd been on comp.mail.sendmail, but I notice that traffic is a fraction of what it used to be.

View 1 Replies View Related

General :: Sendmail Masquerading Email From Address?

Jul 18, 2010

I have my system set up with sendmail (going through my ISP SMTP server) but when I sent an email using sendmail it was defaulting the from address to user.host.domain or something similar. So I read up about masquerading [URL] and managed to get it to USERNAME@myisp.com however I want to change USERNAME to a different value because my ISP username is different from my machine username. My aim is just to get the from address to be [URL]. This machine is only used by me so I don't need it to be different for different users if that makes things any easier...?

View 4 Replies View Related

Server :: BCC All Outgoing / Incoming Email Through Sendmail

Jun 9, 2010

How could we bcc all outgoing / incoming email through my Sendmail (8.14) Server?
I tried this /etc/procmailrc
:0c
! backupmail@domain.com
But this get looped and backupmail received multiple emails of each for domain.com while sending locally from one user to another user.

View 6 Replies View Related

Server :: Sendmail: Email Blocked Due To MUA's Dynamic IP?

Feb 11, 2011

I use sendmail as the MTA for our company. Lately employees have started working from home. These home users send their email through our company MTA using SASL-AUTH. This works fine for the most part but lately we've seen problems with this. The SORBS blacklist looks not only at the IP address of our company's MTA but also at the IP address of our employees home computers. (After all, the home computer IP address is revealed in the mail header.)

SORBS has been rejecting emails sent from our home users because their dynamic IP address is present in the email headers. This is true despite their email passing through our company MTA which is on a properly forward and reverse mapped static IP. The company MTA is not listed in SORBS but the mere presence of a dynamic IP somewhere in the mail header is causing outright rejection. This seems bizarre to me considering home workers sending through a company relay is a common and reasonable business practice.

Can sendmail offer a solution here? For example, to change headers to obscure the IP address of the MUA or make the email appear to have originated directly on the MTA? I don't want to mess with internet RFC but frankly I'm out of ideas for how to get the mail delivered.

View 1 Replies View Related

Software :: Sendmail Is Not Sending Email From PHP Script

Sep 10, 2010

I can send mail through telnet and the recipient receives the email, but I cant send it through PHP.

View 6 Replies View Related

General :: Authorized Email Address - Sendmail Server?

May 4, 2010

I am having many mails transferred through my Sendmail server,but I want to configure only authorised email address through our server.optimize my mail server's configuration.

View 3 Replies View Related

Server :: Configure Sendmail As Forwarder For All Received Email?

May 4, 2011

So I have two servers in my environment, I have an app server that runs my Java App on it and then I have a utility server. Right now, I have that utility server acting as a simple mail gateway so when my app server needs to send an e-mail out, it forwards it to the utility server and the utility server sends it out to where-ever it's destined to. The Java server always sends as one specific user, let's call it bob@company.com.

This set-up is working just fine right now. Now, I also have my company.com e-mail hosted at an e-mail provider for all of my user's e-mail accounts and such. I also have a bob@company.com e-mail account so if e-mails ever bounce, they end up in this inbox. Again, this works fine.

My app is pretty email dumb so it can't authenticate itself or anything, that's why I am using sendmail on my utility server instead of my e-mail provider's SMTP server. What I would like to do is to configure sendmail to forward all outbound e-mails (and authenticate) to my e-mail provider's SMTP gateway using the bob@company.com account and credentials. Is it possible to configure sendmail to do this?

View 1 Replies View Related

Server :: Sendmail Not Forwarding Email To Domain's SMTP?

Apr 9, 2010

I have a server "test1" in domain [URL]. I installed sendmail on it. I have another mail server "mailsrv" installed in [URL] which is my primary mail server and contains all accounts and mailboxes. Now when I send email to [URL] from [URL] it sends successfully. But when I try to mail to user1@abc.com it tries to search user1 in [URL] but I want it to forward this mail to mailsrv.abc.com over SMTP port. Delivery will then be taken care by [URL]

My log shows following

Code:
Apr 9 18:37:06 test1 sendmail[7512]: o39Db6Hs007512: to=user1@abc.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30047, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o39Db6Il007513 Message accepted for delivery) It should not go to relay=[127.0.0.1], it should go to relay=[10.10.10.1]

View 4 Replies View Related

Server :: Can Restrict Sender And Receivers Email In Sendmail?

Dec 4, 2010

i have installed redhat 5.3 and install sendmail on it.it is working perfectly fine.my question is|:

(1) can i restrict the sender and receivers email in sendmail?eg. i want to do that i want to allow only particular email addresses to send and receive and all other will be discarded
(2) i made aliases for all user but it only receives received mail copy i want both sent and receive mail copy in aliases.

View 1 Replies View Related

Software :: Nagios Email Notification Sendmail Fails ?

Jan 14, 2011

I have a setup with Centos 5.5, Nagios 3.2.3, sendmail 8.13.8. When a insident is happening Nagios notify-by-mail is triggered and Nagios sends via sendmail. Unfortunately there is a trailing $-sign added to the $CONTACTEMAIL. Sendmail cannot mail to xxx@mail.address$

A hack is to insert mailaddress in misccommands.cfg but I would like to have a more clean way.

View 3 Replies View Related

Software :: Sendmail Email Aliases Not Accepting Mail

Feb 3, 2011

Have tried to setup email aliases in sendmail so I can have multiple address pointing to one linux login. However none of the aliases seem to be accepting mail.

I get the following error message when trying to send to them.

I have tried restarting sendmail, have mapped the /etc/mail/virtusertable across to virtusertable.db with the following command.

Code:

Output of sendmail -bv is as follows and looks correct.

Code:

Have also added new domain into local-host-names file. I am stuck on what is left to check and why the messages are getting bounced back.

View 15 Replies View Related

CentOS 5 :: How To Config Sendmail So Can Use Mail To Send Email

Aug 11, 2011

I'm trying to setup notification function for the Nagios Core which use Mail to send notification.I got an account from Rogers. I have SMTP server, email account with authentication information.My Nagios server is in a workgroup, there is now domain assigned to it, I just use nagiosserver.localdomain in /etc/hosts.I added Rogers SMTP server in /etc/mail/sendmail.mc and Future (AuthInfo) I created an /etc/mail/AuthInfo and add AuthoInfo:smtpserver "U:user" " P: pwd" "M:Plain"I added smtp server in /etc/mail/access for RelayI added root@nagiosserver.localdomain on /etc/mail/virtusertableI regenerated sendmail.cf by user m4 commandrestart sendmail service.When I ran: Mial -s test nagios4ccs@rogers.comIt did not prompt any error message , in the maillog it says the message is queued but It can not be sent out

View 3 Replies View Related

OpenSUSE Network :: Reconfiguring / Recompiling The Sendmail Conf Files But Would Rather Not If It's Not Required + Milter?

Mar 22, 2011

I have gone through a good number of distros all the way back to Slackware but I'm struggling to get my brain moving in the right direction again. I am working to enable sendmail and, from what I've read, it appears that newer version of sendmail are installed with milter but I can't seem to locate this. I am running v11.4 so I'm wondering if this is just not the case? I don't have a problem reconfiguring/recompiling the sendmail conf files but would rather not if it's not required. For the record my ultimate goal is to have the spamassassin and clamav milter's installed and using the home server as our primary email.

View 7 Replies View Related

Fedora Installation :: Setup An Email Server Using Sendmail And DOVECOT On F13?

Sep 11, 2010

I wish to setup an email server, using sendmail and DOVECOT on F13 With no modification of the DOVECOT config file ( fresh installation ), I can see that :

service dovecot restart
shows me :
service imap stop
service imap start

In the config file, I have :

protocols = imap pops imaps pop3s

and of course, I cannot connect as pop3

View 7 Replies View Related

Server :: Sendmail - Block Email To Root From Outside But Keep Receiving From Inside

May 5, 2010

I have a small internal network with about 8 or so servers or workstations. My mail server is getting spammed from all over to the root and other administrative accounts. I also get valid email sent to the root and administrative accounts from within my local network. Is there a way to block all email coming from outside my local network while still receiving it inside the local network to these specific accounts?

View 2 Replies View Related

Server :: Sendmail Works But Opens 43 File Handles Per Email

Dec 16, 2010

I'm using Sendmail 8.13.8 on a CentOS 5.5 vServer (Virtuozzo). I'm using a loop in PHP to send a lot of HTML-mails via sendmail. Each mail is a mail with individual statistics for our users, so its not mass mailing, bcc is not an option. It all works fine, but when I take a closer look there is a problem heading our way with a high number of mails: For each mail sendmail opens up 43 files. Sometimes these open files get closed again very fast, sometimes not.

Here is an example using the PHP-script below, it sends 20 mails in a loop:
[root]# php test-mail.php
START: number of open files: 2113
END: number of open files: 2973

This is the worst case. The number of open files (lsof | wc -l) used to send the 20 mails is 860 => 43 open files per mail. Sometimes the files are closed very fast, so I get results like this, too:
[root]# php test-mail.php
START: number of open files: 2113
END: number of open files: 2242

This shows 129 (3 * 43) open files, so the open files for 17 send mails are already closed, for 3 mails the 129 files are still open. In the worst case and with lots of mails our server crashes, the numfile limit of 8192 in user_beancounters is reached (our ISP won't give us more than 8192). Sendmail DeliveryMode is background. Could it be that sendmail tries to send lots ob mails asynchronously and uses 43 open files for each?

I'm only depending on sendmail to deliver the mails, normally I wouldn't dare to touch the sendmail config (like 'if you don't know what you're doing, don't!'). It is not a problem of PHP. I verified this by sending mails via SMTP localhost to sendmail (opened 43 files per mail) and sending mails via SMTP to an ISP-relay (did not open any files per mail). This is the code for test-mail.php:

PHP Code:
<?php
$output = shell_exec('lsof | wc -l');
echo "START: number of open files: $output";
// HTML message
$msg = '<html><head><title>Test mail</title></head><body><p>Mailbody</p></body></html>';
// Set 'Content-type'-header
$header = 'MIME-Version: 1.0' . " ";
$header .= 'Content-type: text/html; charset=iso-8859-1' . " ";
for($i=0; $i<20; $i++) {
// send mail, this opens up 43 files for each
mail('you@yourdomain.com', 'Testmail '.$i, $msg, $header, '-f
[email]bounce@yourdomain.com[/email]'); }
$output = shell_exec('lsof | wc -l');
echo "END: number of open files: $output"; ?>

View 3 Replies View Related

Software :: Configuring Sendmail To Relay Messages To An Email Gateway?

Jun 15, 2011

We have a sendmail server located in a DMZ that has normally been able to send SMTP traffic to whatever destination is listed in the address of any given e-mail message. A recent change in network configuration has introduced an e-mail gateway that all servers need to send smtp traffic to in order for the messages to go out to the Internet.

View 1 Replies View Related

Software :: Sendmail: Prevent Localhost.localdomain From Appearing In Email?

Jul 9, 2010

When I send email through sendmail, by using a command such as:

Code:

echo "test" | mail test@gmail.com
This appears in email source:

Quote:

Received: from mydomain.com (localhost.localdomain [127.0.0.1])
Received: (from root@localhost)

How can I prevent this? Ideally it would display:

Quote:

Received: from mydomain.com (mydomain.com [server IP])
Received: (from root@mydomain.com)

I've tried playing around with the sendmail.mc file, but nothing seems to work.

View 3 Replies View Related

CentOS 5 Server :: 5.4 - Setting Up Sendmail To Do Secure Email Transmissions

Nov 27, 2009

I'm confused about the sendmail/ssl combination. so confused, i'm not even sure what i'm confused about :) I want to have email sent from our server to the rest of the world in a 'secure' manner. Just dl'ed and installed CentOS5.4: Linux rh5 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:03:03 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux the /etc/mail/sendmail.mc has the instructions

[Code]...

View 2 Replies View Related

OpenSUSE Network :: Can't Send Or Receive Email

Dec 28, 2009

can't send or recieve E-mail. Running postfix , thunderbird squirrel mail. Thunderbird and squirrelmail connect to server but am unable to send or recieve. recieve connection refuses 111 can't open smtp stream. I seen a post mentioning port 25 : 587 for squirrellmail but I do not have exim.conf to update daemon_smtp_ports= 25 : 587 is this located in another file for suse 11.2?

View 3 Replies View Related

OpenSUSE Network :: Email To SMS With Gnokii And Postfix?

Apr 26, 2010

I have a server with an sms-terminal attached. There I use "gnokii" to send sms. Now I'm searching for a solution with postfix or something else to receive an email and resend the subject of this email as an sms with gnokii. I have already searched a lot. I found that I have to create a special "sms"-user and a .procmail / .forward-file. But I had no success with this solutions.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved