Ubuntu Servers :: Configure To Send And Receive Mail From Multiple Sub Domains Of Domain?
Jun 14, 2011
I want to configure a single mail server to send and receive mail from multiple sub domains of my domain. I've already installed Postfix/Dovecot and it is perfectly working for mydomain.com. And also installed roundcube for Web Mail. Can I further customize this setup to process mail to sub domains? ex- email@example.com, firstname.lastname@example.org, email@example.com (firstname.lastname@example.org and email@example.com are 2 separate users. they should be able to log on to web interface separately)
Currently i use system account names as email user names. (ex - firstname.lastname@example.org). The only MX record in my domain DNS pointed to current server (mailhost.mydomain.com). I read about postfix virtual domains. but couldnt figure out how to use it to achive my target. I do not need configuration details. Just explain me the way to do it. I can do the rest my self.
Two exchange servers internally. One is setup for example.com (192.168.1.10) and the other is setup for example2.com (192.168.1.20) Both are behind a single public IP.
I want to use postfix to sit in front of the two exchange servers. Postfix will accept mail for both domains and relay to the appropriate server. I have postfix installed with only defaults at this point.
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 set up my mail server using the guide here: [URL] I am able to receive mail, I can send mail locally, but I can't send to external addresses. This is in my mail.log: Quote: Jun 30 14:40:43 Server postfix/smtp: 2FD9322015BF: to=<email@example.com>, relay=none, delay=1634, delays=1484/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[126.96.36.199]:25: Connection timed out)
Let me start off by saying I am experienced with computers, though my knowledge of Linux and networking is limited. I've just recently started setting up a Ubuntu 10.04 server to be a SMTP server. I've followed this guide by the letter: [URL] What I've attempted, to test the server, is the following:
telnet localhost 25 ehlo localhost
(this returns all the desired information) I then do a MAIL FROM my domain which is accepted, and try to do a RCPT TO an external mail server (gmail) to test sending an email. I am then told 'Relay Access Denied'. I'm sure that there's something fundamental that I'm either not understanding or not doing correctly. I simply want an SMTP server that can send to other domains. What do I need to do?
Im moving all my websites on a dedicated box. I had a cpanel hosting account, and now moving to a terminal and ssh system.I need some advice on choosing my mail setup. I need POP, SMTP, with multiple domains, as host for a few clients.I would like the most simple version.The server will only send +- 100 mails / day.I currently running Ubuntu Linux 10.04.
I have recently setup an Ubuntu 10.04 Minimal x64 Server. I plan on setting it up as a mail server. I need a secure server, that has spam prevention on it. Im setting up around 50 domains and would like a web based control panel. What is the most secure mail server, that i can setup for multiple domains?
Regarding few things I am facing problem : 1. How to send one copy of that outgoing mail generated from the source. It should cc to another mail id in server's backend while mail sending. 2. I don't have any domain - internally or externally. Only have static ip, accessible from outside. Can I configure sendmail to send-receive through that ip. 3. How to transfer all mails and addressbook from exchange server to linux sendmail server.
I've set up a fully functional e-mail server and can send and receive e-mails to and from an array of virtual domains without a problem. The only hiccup I have is that only root is able to send e-mails via mutt. I have not stipulated a sendmail line in the mutt configuration so it's sending e-mail with default configuration. How can I get it so that all users on the server can send outgoing e-mails via mutt?
Update: Solved this by following this http://inmyplace.info/2008/05/07/pos...ission-denied/
i basically had this system installed for our mail system.The setup is as follows:
1. Operating system installed is Debian ver. 5.0.3
2. Roundcube is installed as a webmail(if its right for me to say that)
3. The server is hosted right here at our offices
4.The server uses relay system to send mail i.e. relays all our mails to our ISP
That all i can say about the configurations becuase thats as much as i understand it.The problem now is that we are not able to send or recieve emails from both internal and external.I tried to send mail to a collegue in the office who is on our local LAN,Roundcube says sent successfully but the person does not recieve the mail.i tried to send to my yahoo address but nothing.I dont know where these mails have been trapped.
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.
We host our own mail server on our Fedora box. We would like for our field people using there smart phones to be able to send and receive mail. Receiving is no problem but sending creates problems with relaying and port assignments. Is there any way sendmail can be configured to allow these mobile phone users (AT&T, Verizon) to send mail through our server?
My email server (Postfix + Courier + virtual dropboxes) can receive internal emails, but if the email is sent from the exterior (like Gmail or Hotmail) this email is returned to the 3?rovider (like Gmail):Delivery to the following recipient failed permanently:firstname.lastname@example.orgTechnical details of permanent failure:Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 sorry, no mailbox here by that name (#5.1.1) (state 14).
----- Original message -----MIME-Version: 1.0I've tried a lot of things, I've used this guide:http://flurdy.com/docs/postfix/My Ubuntu Server is 10.4 (Lucid), I had the same configuration with a previous Ubuntu version and everything was right.
I was running Ubuntu 9.04, no problems. I did a new installation of 10.04 and could not send or receive mail (Thunderbird). Both would time out. tried two other mail programs to see if Thunderbird was the problem, but they did the same.So I did dual boot installation, with 9.04 and 10.04. The same: mail OK in 9.04 but not in 0.04. So that seemed to eliminate everything as a problem outside of my computer.One night I remembered that ipv6 could be a cause, and toggled it in Thunderbird. It has been an "almost". I can now receive but not send.For example, the bottom bar will say: "Connecting to smtp.edicionescc.com" and after a while time out.I can ping smtp.edicionescc.com with no problem
so I'm really new to using Linux, and I searched the forums, but most people seem to have trouble sending mail, not receiving it. When I send mail from the CLI, it gets delivered fine (from email@example.com) But when I try to reply or mail to the server, I get this message back:
Code: ----- The following addresses had permanent fatal errors ----- <firstname.lastname@example.org> (reason: 554 5.7.1 <email@example.com>: Relay access denied)
My server already installed and works well, but I can't send or receive mail with Squirrelmail, the error that appears is: Server replied: 67 Can not execute command '/ usr / sbin / firstname.lastname@example.org '.
Using Ubuntu 11 and have just managed to get wireless working. It used to be a wired connection but when I moved needed to go wireless. Now for some reason the send/receive icon is faded and I can send or receive messages.
I recently purchased a domain and I have setup what I believe are correct dns records from the domain companies control panel. I have the domain pointing to my server and that's working fine. I also have an MX record for my domain. Now, I can send emails from my email account just fine however I cannot receive any emails coming in to my account. Heres an example:
[dalton@int-interactive mail]$ echo "hello world" | sendmail -v email@example.com firstname.lastname@example.org... Connecting to [127.0.0.1] via relay... 220 int-interactive.com ESMTP Sendmail 8.13.8/8.13.8; Sun, 21 Aug 2011 14:45:16 -0400
I'm running a server with two sites which both need to be able to send emails. Currently I have Postfix set up to send email via Google Apps. This works fine, but Google's servers ignore the From: address I specify and substitute the one I logged in with. Is there a way to make Postfix log into Google Apps with a different username based on what site the email is coming from? The server does not recieve any mail itself; Google recieves it and we have it set to forward it to the appropriate person's real email address. I'm only worried about sending mail.
(Postfix is not a requirement here, so if there's another mailer that can do this better, I'm open to ideas. However, sending email directly from the server isn't an option as it's a residential IP address and blocked by most of the big email providers.)
nstalled Postfix + Dovecot + Roundcube on a plain CentOS 5.5 box, let say on "site.com".I cant send or receive emails. When I try to telnet from both localhost and from the outside world, it can not reach the mail server.Testing itself on port 25:
In my continuing quest to live without X most of the time, I am trying to set up fetchmail and Mutt to get and send mail. I only want to be able to send and receive text based mail, and so far I am running into trouble with what I think should be pretty simple. For receiving my mail, I believe I only need to create a .fetchmailrc file in my home directory with the entry:
Code: poll [URL] protocol pop3 username "myusername" password "mypassword" But I get: 2 messages for myusername at mail.myISP.com (7965 octets). fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused. fetchmail: SMTP connect to localhost failed fetchmail: SMTP transaction error while fetching from email@example.com and delivering to SMTP host localhost reading message myusername@pop-smtp.ISP.mail.fy5.b.yahoo.com:1 of 2 (2734 octets)fetchmail: Query status=10 (SMTP)
It appears to me that it is finding mail but does not know where to deliver it and is refused a connection to my machine. Also, I cannot figure out how to set up my SMTP for my ISP in Mutt to send mail. Can someone point me to a simple tutuorial on how to do these things. I really only want to do what you would with Thunderbird, but from the command line.
I need to receive a number of raw ethernet packets (say, 100 packets) into a user-mode accessible buffer large enough to hold all the packets. The way I have done this so far is by looping over the recvfrom() system call 100 times, passing an incremented pointer addressing the location in my buffer to store the packet. Is there a way to receive the 100 packets into my buffer with one system call, perhaps by instructing the kernel to DMA the 100 packets into my buffer?
I'm running SUSE linux Server version 11. I want to configure mail server with postfix & cyrus-imap. For that, i have read many documents in Internet by i met issues. I'm running DNS in this server & it's ok Now I cannont send mail through command line.
i'm using fedora 12 and i wanna send mail using command $mail actually i tried to send mail to my gmail , yahoo ,and hotmail emails but i didn't receive the mail so i expect that i should have some configuration on my host before sending mai
I've set up a mail server using Postfix + dovecot. It works just fine sending email to users in my domain. However, I can't send email to external domains (like gmail, yahoo, etc) different than mine. I've tried sending from a remote connection using Evolution and I get the following message on mail.log
Jan 8 10:45:20 mail postfix/smtpd: connect from unknown Jan 8 10:45:21 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 550 5.1.1 <firstname.lastname@example.org>: Recipient address rejected: User unknown in local recipient table; from=<email@example.com> to=<firstname.lastname@example.org> proto=ESMTP helo=<[10.24.4.230]>