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
ADVERTISEMENT
Mar 30, 2010
I use sendmail using my server. I hosted my site I just bought a domain name. Everytime I send mail I saw in my log files localhost.localdomain. How can I change this hostname in sending my mail.
here's the log:
From MAILER-DAEMON@localhost.localdomain Fri May 8 16:30:23 2009
Return-Path: <MAILER-DAEMON@localhost.localdomain>
Received: from localhost (localhost)
by localhost.localdomain (8.13.1/8.13.1) id n488UNlD006632;
[code]....
View 3 Replies
View Related
Mar 17, 2011
I cannot seem to figure out where my system is pulling its localhost.localdomain setting from. OS is;
Quote:
[root@system root]# cat /etc/issue.net
Red Hat Enterprise Linux ES release 3 (Taroon Update 3)
Kernel on an m Network file is;
Quote:
[root@system root]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
Quote:
[root@system root]# hostname
system
[root@system root]# hostname -d
[root@system root]# hostname -f
system
[root@system root]#
how to set the localhost and localdomain?
For the time being, the localhost is somehow being set correctly, but the localdomain is incorrect.
View 1 Replies
View Related
Jan 22, 2010
We've had this server running before but two hours ago there are some domains outside which we cannot send email to. this is a sample of the message we get
Quote:
The original message was received at Fri, 22 Jan 2010 14:31:59 +0800 from [10.0.200.10]
----- The following addresses had permanent fatal errors -----
<beth@nippon-antennaphil.com> (reason: 550 localhost.localdomain does not exist)
----- Transcript of session follows -----
... while talking to nippon-antennaphil.com.:
>>> DATA
<<< 550 localhost.localdomain does not exist
550 5.1.1 <beth@nippon-antennaphil.com>... User unknown
451 4.4.1 reply: read error from nippon-antennaphil.com.
Our server's been running smoothly before but i dunno what happened. I can send mails to gmail and yahoo as well... but there are like 3 domains which we cannot send mails to.
View 8 Replies
View Related
Jun 11, 2011
I don't want to install alacarte to do this. I've copied the .desktop files from /usr/share/applications to ~/.local/share/applications that I don't want appearing in the gnome 3 applications list (e.g., email settings for evolution), and added 'NoDisplay=true' to the end of each desktop file. Restarted gnome shell, even tried logging out and back in, but they still appear there. Previously, in gnome2, desktop files under the home dir superceded the global directory. Do I need to edit them directly as root to effect the changes, or could this be a selinux problem?
View 5 Replies
View Related
Jan 21, 2011
I have designed and one form and php code to send mail. I am developing this in my localhost, So now i want to send email from my localhost to test my programming. I googled and i find something like editing "php.ini" file. But it didnt work for me.
View 9 Replies
View Related
Aug 5, 2015
How can I send email from localhost on debian jessie? Which mail server/client or package to install?
1) sendmail
2) postfix
3) ssmtp
4) msmtp
5) bsd-mailx
6) exim4
Looking for configurations (example) that i should make?
View 1 Replies
View Related
Jan 21, 2011
How can I send an email from localhost via the terminal? I don't need pop just smtp. I believe this can be done with postfix which I have just installed but what is the command to input via the terminal, on my centos box I use the following to send the contents of some files which works just fine but what about sending through postfix on ubuntu?
Code:
sudo tail -50 /home/user/.bash_history | mail -s "bash history" email@mail.com
View 3 Replies
View Related
Jun 11, 2010
Some body is using my domain name [URL] and sending spam emails to users from his server using my domain name. how to prevent this.
View 3 Replies
View Related
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
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
View Related
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
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
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
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
May 25, 2010
I'm trying to set up a basic smtp server on my local computer that I can send basic, unencrypted email through on port 25. I installed postfix, and I chose the following options:
Internet Site,
System Mail Name: localhost
Root and postmaster mail recipient: I left this blank
For other domains to accept mail, I entered : NONE, localhost
No force synchronous mail updates
Local networks: 127.0.0.0/8
[Code].....
View 2 Replies
View Related
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
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
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
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
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
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
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
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
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
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
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
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
Jan 21, 2010
I have an issue with sendmail. I need to configure sendmail to send email from command prompt to any domain. This is just for the notification purpose. I installed sendmail and sendmail-cf and sm-client. The following are the configuration I have done.
/etc/mail/sendmail.mc
1) dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
2) m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
3) /etc/hosts = 127.0.0.1 localhost.localdomain
/etc/hosts = 192.168.2.50 mysystem
4) /etc/hosts.allow = sendmail:ALL
[Code].....
View 1 Replies
View Related
Apr 27, 2011
I have the following problem with sendmail on F14 (had the same on F13 already):
I have a network setup using bridging which is controlled through traditional ifup/ifdown (because NetworkManager can't handle bridging). My sendmail configuration differs from the Fedora default only by having a SMART_HOST relay. The queueing interval in /etc/sysconfig/sendmail is the default (1h).
When my network connection is up, sendmail normally sends email through the relay immediately. Sometimes I have to interrupt the connection for a few minutes. When my network connection is down, sendmail starts queueing email (OK this far). When the network connection comes back up, I'd expect sendmail to restart sending mail through the relay again. But sometimes, that doesn't happen. Instead, sendmail keeps queueing my mail infinitely (I have seen it happen for several days) until I finally notice that my email isn't received, and run sendmail -q by hand (by that time, my boss is already angry that I'm not responding to his email). In that state, even new mail is queued rather than forwarded by sendmail. It appears that the only way to stop that behavior is to restart the sendmail service.
View 1 Replies
View Related