Run DMZ Postifx Smtp - Relay Each Domain To Different Server?
Jan 19, 2010
I want to run a DMZ postifx smtp relay that will collect and relay several domains, this I can do. But is it possible to then relay each domain to a different server?If so how ? and what set up is needed.
I'm trying to set up my postfix server to relay mail (via a php cms) using Gmail's smtp on my account, but for some reason, Gmail returns an error code that StartTLS must be sent first, my postfix main.cnf file can be found at pastebin, because of this forum's text length I cannot paste my postfix main.cnf file as can be seen I have everything set and configured for Gmail, but postfix (for some unseen reason) can not send StartTLS. [URL].
I've got a server set up with Debian. The problem is that my ISP doesn't allow usage of port 25 (as I understand a lot of ISP's don't).I have PHP scripts hat use the mail() function to send e-mails through the Sendmail application.So, my question is: How can I relay messages sent to sendmail to an external SMTP server (like Google Mail, for example)? Would this be easier to do in the PHP configuration, or on the Sendmail side of things?I've used PEAR extensions in PHP to achieve this before, but scripts downloaded from the Internet generally just use the basic mail() function, and it would be a real pain to modify them all.
i am trying to get postfix to relay through my isp's smtp server, but i am getting an error.Host or domain name not found. Name service error for name=mail.grandecom.net type=A: Host not found, try again...i can send mail inside my domain, but when i try to send an email to a test gmail address i find the above error in the log.
I'm using Ubuntu Server 10.04 and I can successfully relay mail generated by php scripts through an Exchange server.What I want to do is accept incoming mail from the Internet through postfix and relay it to the Exchange server but I want all mail that is not addressed to ...@mydomain.edu to be discarded.
I am looking at setting up a multiple postfix SMTP servers for a single domain. Below is my requirement, I would appreciate if someone out there could guide me to achieve this using postfix..
1. Want to setup 2 postfix SMTP Server with 1 POP3 Server.
2. Server1 will host POP3 & SMTP services for domain "metallica.one".(IP: 1.1.1.1, MX: mx1.metallica.one)
3. Server2 will host only SMTP services for domain "metallica.one" (IP: 1.1.1.2, MX: mx2.metallica.one)
4. Server1 & Server2 will be used as load balancing for sending mails. (either manual settings in email client, or auto-loadbalancing is still preferred).
5. Mail received for domain metallica.one on Server2 should be pushed/forwarded/relayed to Server1 where POP3 services are running.
6. Outgoing mails for other domains from Server2 should be sent directly to the other-domain-recipients without relaying to Server1.
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]
I have a server that runs on a static IP address with many hosting accounts. I am using the IspCP to manage the different sites. When a mail is sent, the headers include the box's own domain name: [URL]. Now [URL] is no longer active, so if an email from another account: [URL] sends mail, there is possibility that this mail is rejected by the receiver, if the receiver system does rDNS.
The receiving server will check the headers smtp sent from [URL] and come up as a fake, because [URL] is no longer registered. I wonder if there is a way to make the smtp headers reflect only the domain name that sent the mail. Then if joe sends mail, the server should replace[URL] with [URL]. If this is possible, then users that send mail will not get bounced because the rDNS lookup will map [URL] to the ip and the mail will be accepted.
Has thunderbird (recent version) have a "TEST" function ? basically, i'm trying to send messages, with 20+ accounts (different emails, but one domain / SMTP server). one account works fine - the other one doesn't. i go to my "outgoing server" & everything is fine - usernames / ports etc..) The settings for each account do show the right outgoing server. If i 'send later' & close down thunderbird, 7 re-open - it asks me for my password again (which it saves), & then it is able to send the email.
QUESTION :- is there a TESt option that will test each & EVERY account in one timeslot ? Ie, will go through each email address - sends an email to itself (the same address), & sends it. it will then try the server again, to see if the email was received. & then give me a single report, of all the incorrect settings.(I've tried this 1 email account half a dozen times tonight & i dont know *WHY* its not sending on the 1st go.. )
I've tried googling this, and am having trouble finding something that doesn't end up being dizzying or confusing.
I was wondering if anybody could provide me with a concise, conclusive answer/guide.
I have a set of servers which require redundant SMTP relay. The first two of their SMTP relays are their own SMTP servers, and as such, are not dependable in the event that their network/servers go down. Their monitoring software runs on their machines as well, and uses the SMTP servers they themselves host.
I need to set up an external SMTP relay box that they can use to relay their monitoring alerts/admin notices in the case that their mailservers go down.
I have a company exchange server with pop/imap support @ my disposal but, unfortunately, that box runs Windows and does not permit any changes to services or additional software to add for the purposes of relaying clients.
So now, I need to create a dedicated linux box that can act as a relay to send email coming from the monitoring/admin/alert software in case their first two smtp servers have gone down.
When you set up a webmail solution these days, either on your home LAN or at a small business. What steps do you take to make the solution as secure as possible? A couple of years ago it was sufficient to port forward both port 25 and 80/443 to you server located on the internal LAN. Today you're more likely to have a SMTP relay in a DMZ of some kind. But the webmail, how do you solve this? Do you place a dedicated webmail frontend in the DMZ and open ports towards the internal LAN, or do you just place the entire server in the DMZ? I'm looking for input for a small network/home LAN so it shouldn't be to complex.
I want to setup sendmail using my username and password on my ISP to be able to send out messages.This is actually true as the mylocaldomain is not a public Internet domain. Just a localdomain for our local network. However, I was expecting that to change to the username in my authinfo "myusername@myispdomain" since this account is authorized to send out email with my ISP.
I just finish install & setup postfix & spamassasin. I can send & received email from my local area network. i already install webmail client & I can send received. When using my pda from outside my network I can received but I just can send email to my domain only. For other domain it's error relay access denied. Here my postfix configuration.
I've search high and low.. does anyone know how to configure Postfix/Dovecot to use another SMTP server (i.e. smtp.comcast.net) as my ISP blocks port 25?
I am new to the Ubuntu Community and just starting to build my Ubuntu 10.04 Server. I am a novice in Ubuntu, though maybe not a full n00b any more
I travel around a lot with my laptop, (also Ubuntu 10.04). However, my ISP does not allow me to send email via their SMTP when I am not in their IP range.
Since I have this little server I am building, I thought it would be nice if I could have my own SMTP relay. The objectives would be simple:
- I do not need a mailbox or POP server (yet). - I wish to send email from any place in the world. I can not use a filter on IP ranges or local networks only. - If my server could do this, I just configure Evolution on my laptop to send mail to my home IP address, using some sort of authentication and/or security/encryption (whichever is easy to implement). - My server then just forwards my mail to my ISP. Since the server is inside the IP range, it can be handled as usual.
I have been digging through several howto's and the ubuntu server guide, searching some forums etc. Even while I don't fully grasp the things explained, I can't get the idea that one of those is "Just what I need".
Even still, if there is some other service outside my own that can do this (a public SMTP relay maybe?) I would also be happy to consider as long as it is safe and does not "eavesdrop" on my messages.
I have setup my own home server . All the applications are working perfectly except one I can't send Emails. I check weda my smtp has any errors not welll I got this
Code:
SMTP -> FROM SERVER: 220 server1.example.com ESMTP Postfix (Ubuntu) SMTP -> FROM SERVER:
My postfix is ok with receiving emails but i can send mail to my domain only [URL] When I want to send to other domains i receive this error (in the maillog):
On my opensuse 11.4 box (although I assume the version is irrelevant), I'm trying to figure out how to do something with the mail command. We have multiple smtp relay servers and sometimes I have to test to verify that mail is bouncing off of them successfully. On my laptop, in my main.cf file for postfix, I've got the relay server listed. But to test multiple servers, I have to change the main.cf, restart postfix, send message, and then repeat for each test.
I'm trying to figure out a way to specify the smtp relay on the command line. I've been playing with the -S option which is supposed to allow variables and one of the variables in the man page is 'smtp'. I've tried several different syntaxes but nothing seems to work.
The closest I've come is: mail -S smtp 10.1.0.63 -s "test" user@email.com < main.cf
That syntax doesn't give me an error but it still routes the message off the smtp server listed in main.cf which is not 10.1.0.63.
I'm running ASSP on Ubuntu 10.04.1 it's mostly working fine. I have one problem which has been bugging me for some time. I don't want to filter outbound mail, but if I can relay (proxy) my outbound mail through ASSP, then it can automatically add to the whitelist.
As ASSP is a proxy, I need a server to send it to once ASSP receives it. I've tried my ISP, but this failed and they weren't willing to confirm if a connection attempt was received at their end.
Can anyone help me with troubleshooting steps or a better suggestion for how I can set this up. I'd love to know why my ISP setup didn't work, but I don't know a tool for monitoring IP traffic in Ubuntu SE, in windows I use Wireshark is there any equivalent I can setup for Ubuntu or a tool I can use in windows which will show all traffic, Ubuntu and windows server are on the same netgear switch, not sure it's smart enough to copy all traffic to another port for monitoring.
Is the term a 'simple SMTP relay' a contradiction in terms?!I have an elderly Dell server on which I have just made a fresh install of 10.04 LTS server. I had 8.04 running on it for a long time, but I haven't tried an SMTP server before. It is a headless server with CLI (no GUI) and the latest version of Webmin installed.I have a basic LAMP server installed for a few websites using PHPbb and Joomla, and also I run a Mediatomb server for our household. When I installed I also chose to install mail services, but these remain masked behind NAT at the moment
I now want to set up an SMTP relay server so when I am working away and using different wifi points or my notoriously unreliable 3G dongle I can always send emails through the home server (from my iPhone and my laptop) rather than having to look up the SMTP server for each ISP of the place where I am working.
What I want is an authenticated server which takes my email and redirects it to my home ISP's SMTP server. I need only 3 authenticated users to have access (myself, my wife and my son). I don't need (or want) any incoming mail services at all.
Useful modules installed are: Dovecot, Postfix, Procmail mail filter, PAM - but how do I set them up?
Is there any simple setup that I could do, preferably through Webmin, but I can handle CLI if necessary?
I have looked at the Ubuntu help pages, but it looks so complicated to set up something that seems like it should be so simple to me.
I want to implement POSTFIX as our MAILSERVER.I have a couple questions some I already posted here now theres another error regarding on sending recipient in other domain like yahoo.com...using postfix server detected that i have an error on relay which is denied in other domain name...can anyone guide me how to fix it I think i have to update my main.cf.
I'm trying to use different MTA servers (one for each domain) on the same public IP and port (25). Here I attach a graphic of my idea, to have a Postfix server that receives all incoming mail from internet, and relays to different local servers. esquema_mta-dns.jpg How can be configured the "Relayer MTA" ?
I installed the citadel suite on ubuntu server 9.10 Email obviously works fine internally. I tried to setup a smart host to send my mail through as my isp(Verizon) obviously blocks port 25. I tried to send out the Verizon smtp server on port 587. In the Administration> Domain names and Internet mail configuration>Smarthosts.My smarthost entry on the citadel configureation page above was usernameassword@outgoing.verizon.net:587 but after sending an outgoing email, it comes back with a "invalid/host-not-in-DNS return address not allowed"
I have also tried using gmail and a hotmail account with the respective smtp address's in but they come back with "Must issue a STARTTLS command first".I have researched both messages and come up with squat that has helped me.
I know that my mail will have to go out through a smarthost of somekind. So is am I on the right track with choosing verizon/gmail/or something else as my smtp relay, or is there a free service out there that I can send email through(haven't found one if there is)
Anyone else ever setup Citadel and got around their isp blocking port 25?I am also not sold on citadel, it was just the first/ nicest looking one that I found.
In order to have greater control over the emails sent out the company I imagined the following scenario.ScenarioDescribing in words what I need.ser sends an email to user@hotmail.com for example, using the smtp of my isp (is the internet).Before the email is sent, the firewall checks if the recipient is blocked transparent, if you are locked out rejects the email.I searched several forums and mailing lists, but did not find scenarios similar to mine.Where found situations in which the mail servers were internally in the company, which is not my case.
I've got a home server running Ubuntu Server 9.04 and several machines running Ubuntu Desktop (9.04 and 8.04) and Windows (XP, Vista and 7). Now what I want to do is to create a domain and directory server similar in function to Windows Server w/ AD and join my other machines to the domain, but am not sure where to start. I already have file shares with Samba but now I want to setup a domain.