General :: Sending Mail From Virtual Host Fails "mail For Domain.com Loops Back To Myself"
Jul 1, 2011
I have two servers relavant here: mail.domain.com (1.1.1.1) - which is the nameserver and the mail server for domain.com. www.domain.com (2.2.2.2) - which is the www subdomain for domain.com domain.com (cname www.domain.com) - an alias for www.
The zone file for domain.com lists mail.domain.com as the MX server for domain.com. 2.2.2.2 is actually being served web pages as a virtual host. It's real hostname is www.anotherdomain.com. Mail for domain.com works pretty well, in general. However, if I attempt to send mail from www.domain.com (or its alias domain.com), I get "mail for domain.com loops back to myself" in the postfix logs. On 2.2.2.2 /etc/postfix/mail.cf has mydestination = www.anotherdomain.com, localhost. How do I tell postfix on 2.2.2.2 that mail for domain.com needs to be delivered to mail.domain.com?
I send email from myself or external gets bounced. I get a nifty message mail for weasy.info loops back to myself. and could not relay for external messages.
in Lucid ive been trying to get the mail applet to light up green by sending myself mail. Does this applet only light up when IMs r received or does this also work with evolution and if so what might i have done wrong in evolution, ive tried it with evolution open and evolution closed.
I am managing a Fedora dedicated server with Plesk 9 and just recently moved the email for one of the domains on the server to Google Apps for business. Unfortunately, I cannot get email messages from the website forms to deliver to addresses on this domain. For anyone familiar with Plesk, I have disabled mail in the hosting settings by un-checking the "Activate mail service on domain" checkbox and there are no accounts in the domain. (Other readings have indicated that this should be enough to allow mail to be directed to the appropriate server). My MX records correctly point to the google apps mail server.
I'm quite comfortable with command line, but I know almost nothing about the sendmail program or its alternatives and my attempts at researching how to set up this relay has been futile. I'm pretty sure I'm using sendmail and not qmail or anything else from what the red-hat style "alternatives" symlinks point to. I've also checked the /etc/mail/access, domaintable, mailertable, sendmail.cf, virtusertable, local-host-names, sendmail.cf, and submit.cf and most of these files are empty (except the .cf files), and the sendmail.cf and submit.cf make no reference to the domain in question.
Here is the output from a sendmail test that was was not received. (Private data omitted of course). sendmail -v xxx@yyy.com test email from yyy.com webserver. please ignore. xxx@yyy.com... Connecting to [127.0.0.1] via relay... 220 my.server.com ESMTP >>> EHLO my.server.com 250-my.server.com ..... Closing connection to [127.0.0.1] >>> QUIT
Performing the same test and sending an email to a non-hosted domain works fine.
I have to administer a few mail servers, a mail log server, 4 nameservers and a web server -all running on Centos 5 server distributions. Now I have a task: to avoid accidental crashes on the production servers while installing updates, my boss asked me to do clones (these clones will all be VMware virtual machines) of the servers (EXCLUDING the actual e-mails and mail log contents) and then to run those clones on VMWare Server. This way, first I will install and test updates on the clones and - if they will be running without crashes - I will apply the updates on the real production servers themselves. I have already installed VMWare Server 2.0 I have a few questions:
- How do I build the virtual machines to exclude the actual mail files and mail logs? Can I use VMware Converter for this purpose, or do I have to use another program? - How do I actually do this cloning? Is there a tutorial on how to do this?
Postfix in Webserver is using Postfix as relay, next, Mailserver is sending emails ok when I use phpmail in any "virtual domain", but I have a few problems that I don't know how to fix...
1) If I send a phpmail from the "default domain", it is not working (no Postfix has log acitivity).
2) If I send an email using phpmail function without a from, the from will be www-data@w1.domain.com. Because I am hosting lots of virtual domains, I really need to use as "sender (From)" a mailbox named: whatever@hostedvirtualdomain.com.
There is an requirement, intranet people they may not have internet access but they want to send mail to external domain(internet),but in that intranet network one machine can have internet access. Is there any solution for this requirement.
I'm using the mail command and I am able to send mail to my gmail account with out any problems. However when I send mail to deco -at- mycompany.com I nothing happens and no mail ever arrives in my mailbox. It might be worth mentioned that my centos5 is a virtual machine on the same server as the company exchange mail server.
I ran mail (aka mailx) and opened an account foo. If I remain inside the program, the command 'account foo' prints the account data. Good. But if I exit the program, and rerun it, then the command 'account' has no output which is to say I have no account.
I'm am not remotely familiar with the linux operating sytem and just need a simple 'cut and paste solution' that will allow me to send .gz files as mail attachments, from the command line.Recently I moved my website to new hosting company, they are using cpanel and I have set up a couple of commands; the cpanel scheduler runs them for me as required.
1.creates an mysql dump and saves it to folder ( in root of my space )Works fine.2. delete the file created above, after 15 mins. Also works fineWhat I really want to do is email the .gz to myself before it is deleted, this is were I am stuck.This is possible ( I believe ) but it is beyond my understanding and ability to write the scipt/command that will make this happen.Please make any instructions really simple and clear as I am really new to this.on the server and this information is provided below and may be helpful to you (but I certainly to not know anything about this type of stuff)
I have one major problem in my mail server. I am not able to send mail to other domain yahoo and rediff. and my ipaddress is blacklisted. So Finally I checked logs. Mail queue is high. Log shows spam and junk mail created in my mail server. he following are the logs. Iam using qmail server. One more thing is in link is there when I click that link its go sex websites. I will try all mail queue logs. It shows the same website redirection. So I don't know its happen. My thought is spam create from that website.
I was thinking about setting up my own mail server. Problem is my ISP will not let me have a static IP unless I upgrade to a Business class service which is just too expensive for home use. As a work around I use a DDNS service from Dlink, which is actually done via DYNDNS.com. So essentially I have mydomain.dlinkddns.com point to my Dynamic WAN IP, and it is all automatically managed by my router.
Is there a way I can haveoint to my mail server without it being a subdomain of my DDNS om)? In other words I would like to have the email someone@mymaildomain.com and not have it be dlinkddns.com or something like that. I know someone has done it, I just have never done it. Not quite sure what to google to find the answer myself either.
I have a server with a static IP that I use as a sendmail server. The problem is that port 25 is exposed. As a result, anybody can login to the SMTP server and send mail from my domain as a user that does not exist as well as email from other non-existant domains. I'm sure there are sendmail options that I can enable to do some checks, like if the user exists on that server or if the domain is the same on the server, etc. I was wondering if you guys can mention a few that I can add to my sendmail.mc file?
I have thought about auth login, the problem is if auth login is on my public port then I won't be able to receive email from gmail because it would be unauthenticated. Also, I only have 1 mail server. I know the ideal solution is to have 2 mail servers. One for outgoing mail/internal mail server where you can enable auth login and the other for incoming mail which just acts as the relay to the internal mail server. That way spammers can't login to send mail out. That's another question I had, how do I configure sendmail to only send email out/in?
Anyhow, so I have to make do with 1 mail server for now. So I decided to add a few rules on iptables. I grabbed the IP range that gmail uses when I receive mail from then and added it to my iptables with the following command.
I have got a nagios server running on my network, The configuration seems to be okay but each time there is a service alert notification, and an e-mail is sent to the contact group, Nagios continuously sends e-mail over and over again. Do anyone know of a way to set Nagios directives to only send one e-mail per alert without it flooding mail boxes.
I had configured sendmail on linux 5.2, Iam using public ip and my domain is registered[linuxforfreshers.info]. I am facing a issue that when I mail with the user sumit@linuxforfreshers.info then I am able to do it. But if somebody tries to send mail to the same user then it bounce backs. I had made the entry of domain in /etc/mail/local-host-name and also I put ok in /etc/mail/access.The mails are working properly with in LAN. But not able to work on WAN only I can send mail but not able to recieve mail.What else I need to do.
How can I split my local mail box into an individual files for each mail. The senario of mine is I fetch some emails from a mail server into my local linux box with fetchmail command but I want each fetched mail in a different indivitual file for easy file processing and manipulation for example sending those email through sms and so on
I need help in setting up the native e-mail client included in Debian Squeeze. My ultimate goal is to have the Debian e-mail client download e-mail messages and process attachments automatically.
l to a group in Linux? for example, I want to send a notification mail to 20 people and I want to create a group of these 20 people and want to send them the notification
I want to send mail to potential customers from my localhost server in my SOHO. I have a web site hosted with a company called geek hosting [URL], so I have access to the mail services through them... I want to their mail server to push things out to the world form my localhost server.
I do have a registered domain name which the hosted site runs under
the domain name for my centos 5.4 server is localhosthost.localdomain.
I am very new to CentOS and running a server in general. I managed to get a server setup with CentOS, and it's running a wordpress driven social networking site. Everything is fine except sometimes my server won't send registration/activation emails to some email addresses. This is a huge problem because people signup but then can't activate their account. I don't understand why its sending some and not sending others based on the email domain? The guys at wordpress said "it's that your server does not support SMTP or at least wp_mail() in its normal form" but that doesn't mean much to me.
I just want to know is it possible to extract a single mail from the mail path i.e. /var/mail/root.
for ex. i am having this mail in /var/mail/root.
From root@localhost.localdomain Thu Mar 10 21:47:47 2011 Return-Path: <root@localhost.localdomain> Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p2AGHlx4004190 for <root@localhost.localdomain>; Thu, 10 Mar 2011 21:47:47 +0530 [Code]....
I have configured fetchmail, sendmail/postfix and mutt to act as a relay to receive mail. I can receive mail fine but I cannot send mail. Its working fine on my one box but on the one acting as a nat I am having issues. This is my mail log from the nat box.
How is it possible to send email using the "mail" program? I tried: echo "testing" | mail -s "test" myaddress@gmail.com But nothing happened. I made sure that the sendmail daemon was running before I tried. Is there anything else that I have to set up first?
I have OpenSuse 64bit running a web site. I have a form on this site here:- Dynamic Systems Group The script itself works and I have tested it on another hosted server and it works fine. However on my server the email the script sends never arrives, which must be a problem with my Postfix settings I guess. However I also have two pages on my site for testing sending of mail, which BOTH report a postive result:-
[URL]
However even though these pages report successful send the mail stil never arrives. I have looked at many pages and forums on the internet and I am really, really confused as to how to set up Postfix. On the Suse box I have the Mail Server configured in Yast to send mail via my Gmail.com account using TLS and authentication but still no success!