Ubuntu Servers :: Mail SMTP Relay / Copy All Traffic To Another Port For Monitoring?

Sep 2, 2010

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.

Current setup

Inbound

mx -> router -> ASSP -> Exchange 2003

Outbound

Exchange 2003 -> mx

I'd like to setup outbound as either

Exchange 2003 -> ASSP -> <ISP> SMTP relay
Exchange 2003 -> ASSP -> <relay running on Ubuntu eg postfix>

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.

View 4 Replies


ADVERTISEMENT

OpenSUSE Network :: Specifying Smtp Relay On Commandline Of Mail Command?

Aug 9, 2011

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.

View 3 Replies View Related

Server :: Postfix Not Relay Mail Via Gmail Account SMTP

Feb 11, 2011

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].

View 4 Replies View Related

Networking :: Use VPN Tunnel For All Traffic Except SMTP (port 25)?

Nov 8, 2010

I'm new to iptable configuration. I've set up a VPN using DD-WRT on my router and it works fine. However the VPN company does not allow port 25 traffic (in case of spammers) so now I can't get my emails sent out.

I'm guessing I can add some rules to my iptable so that all traffic except port 25 traffic can go out through the VPN tunnel. And hopefully, all port 25 traffic will go out through the normal Internet connection.code...

View 2 Replies View Related

Ubuntu Servers :: SMTP Relay - How To Configure Postfix

Jan 26, 2010

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?

View 2 Replies View Related

Ubuntu Servers :: Setting Up Authenticated SMTP Relay?

Jun 15, 2010

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.

View 3 Replies View Related

Ubuntu Servers :: SMTP 554 5.7.1 : Relay Access Denied

Aug 18, 2010

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:

[code]....

View 1 Replies View Related

Fedora Servers :: Set Up An External SMTP Relay Box?

Jun 29, 2011

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.

View 6 Replies View Related

Ubuntu Servers :: Secondary Mail Server And A Mail Gateway/relay?

Aug 3, 2011

Our primary mail server is Exchange 2003 Standard on Windows Server 2003 Standard - don't shout at me; I inherited it already set up this way.I have a couple of hardware identical redundant servers (HP ML350 boxes), all with very fast 2 or 4 disk arrays, multiple core CPUs and plenty of memory, and I am looking at two potential new additions to the infrastructure.

A secondary mail server is high on my list of priories. I've been well and truly bitten by Exchange in the past and given that this particular box has been running four years straight and that it's mail store is dangerously large, having a secondary mail server in place suddenly makes a lot of sense.

A new Exchange 2010 box is currently being set up, but the secondary mail server will remain in place even when the new Exchange server is brought online, so this won't be a wasted exercise.... I also want a gateway box in place to filter and relay mail to the primary server, or to the secondary server if the primary is unavailable. Currently our outer perimeter is:

ISP supplied CISCO router
Draytek VigorPro 5510 UTM

Untangle running in bridged mode (primarily used for SPAM filtering, URL blacklisting, and very little else) Exchange 2003 sits behind the Untangle box. This is how I want to end up:

CISCO >> Draytek >> Ubuntu gateway >> Exchange/secondary mail server

I know I could replace/remove the Draytek but I want it to remain for several reasons, including lots of VPN dial-in users already configured and that it offers us an additional layer of email antivirus scanning before things hit the Exchange box. No point switching all of our remote workers over to new tunnels unnecessarily...

I have done some research and have started testing a pilot secondary mail server using Ubuntu/postfix DNS is properly set up and MX records and reverse PTR records are all present and correct, and things are looking encouraging so far. Before I go out over deep waters and start to flounder, has anyone who has done something like this got any obvious howlers I should be looking to avoid ?

View 2 Replies View Related

Fedora Servers :: Relay Access Denied 554 5.7.1 (postfix And Smtp)

Jul 2, 2010

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):

Quote:

postfix/smtpd[14172]: NOQUEUE: reject: RCPT from 93-46-46-73.ip106.fastwebnet.it[93.46.46.73]: 554 5.7.1 <giannileggio@shoppeo.com>: Relay access denied; from=<info@sampledomain.com> to=<giannileggio@shoppeo.com> proto=ESMTP helo=<[36.234.52.97]>

it is the same via thunderbird or via telnet. This is my configuration

Quote:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin

[code]....

I used 'sampledomain' instead of my real domain

View 2 Replies View Related

Server :: Configure Postfix To Relay Mail To Multiple Internal Mail Servers With Different Domains?

Aug 6, 2010

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.

View 2 Replies View Related

Ubuntu Servers :: Postfix Relay - Exchange Sends The Mail Instead Giving Recipient Mail A Valid Reverse DNS Lookup

Jan 12, 2011

The scenario: We have an external server that runs HTTP/DB servers for out shop system. Then, there's our local, in-house infrastructure that runs a.. yeah... Exchange 2010. The shop system on the external server needs to send mails to customers (order confirmations, invoices, etc.). seing as sending them directly through the local MTA (Postfix) would cause mail delivery problems because of reverse DNS issues, i've set the Postfix MTA to act as a satellite to our in-house Exchange Server, so the Exchange sends the mail instead, giving recipient mail servers a valid reverse DNS lookup.

Now, mails sent by the (proprietary, uneditable) shop system are relayed correctly and sent to the target e-mail address. My problem is: Mails not sent by the shop system, but by our own PHP scripts which run on that same external servers, are NOT relayed properly. So the Exchange is fine with the mails sent by the shop system, but not the mails sent by our scripts. This is what i get in the mail.log: The successfully relayed mail sent by the shop system:

[Code]....

View 2 Replies View Related

Ubuntu Servers :: Noob Setup Simple SMTP Relay Contradiction In Terms?

Jun 7, 2011

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.

View 9 Replies View Related

Ubuntu Servers :: Monitoring Traffic And Cpu Load?

Apr 8, 2011

my servers are configured with:Ubuntu 10.10 server 64bit;Lighttpd MySQL-Server I need to make graphs for traffic (bandwidth usage) and cpu load every month. I tried to configure mrtg but after 48h, it didn't produce graphs.(I can't install apache2)

[Code]...

View 6 Replies View Related

Ubuntu Servers :: Virtual SMTP With A Postfix Relay - Configure The "Relayer MTA"?

Feb 19, 2011

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" ?

View 8 Replies View Related

Ubuntu Servers :: Smtp Relay - "invalid/host-not-in-DNS Return Address Not Allowed"?

Mar 8, 2010

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.

View 2 Replies View Related

Ubuntu Servers :: Postfix Relay Mail For Local Users?

Mar 1, 2011

I have a mail server running Postfix and the problem I'm running into is that when trying to send mail, I get a "relay access denied" error.Inside my main.cf, I did not specify 'smtpd_recipient_restrictions' so by default, the variable is:

Code:
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
The 'mynetworks' variable looks like this:

[code]....

View 3 Replies View Related

Ubuntu Servers :: Verify That Mail Server Is Not An Open Relay?

Apr 16, 2011

I'm setting up a mailserver for my domain.I'm seeing relay rejections in the mail.logbut I'd like to have external validation that nothing bad is exiting the domain beforeI wind up on blacklists

View 4 Replies View Related

Ubuntu Servers :: How To Route SMTP Port 25 Through VPN

Nov 13, 2010

I have a server set up with a VPN (openVPN with DynDNS). My emails are located there and I can check them from home, office, where ever really, with different computers, no problem.However, due to restrictions of some ISPs I would have to change the SMTP server used, depending on where I am with my laptop.

Now, I thought about using the VPN to also tunnel the SMTP traffic through that. But how am I doing that?So far, when I'm connected to via VPN I simply have a local (from the server point of view) IP address to connect to my IMAP server. But how can I route the SMTP port 25 through the VPN?Is that possible to do, also in a way that I don't have to change anything depending on where I am, as in within the network of the server or outside? Since when I'm within the network the VPN obviously isn't connecting..

View 7 Replies View Related

Ubuntu Servers :: Postfix Smtp Client Configuration For Port 465?

Jan 2, 2010

configuring my postfix server to send mail over smtps port 465. My ISP (as is the case with many ISPs), is blocking outbound SMTP, so I need to configure postfix to relay my mail out through my ISPs SMTP servers.

I was able to get it to work with gmail, which uses port 587, by using SASL: [URL] but that configuration is less than ideal as gmail drops the "reply to" address so when people receive my email, it looks like it's from gmail instead of from my server.

If I use my ISP SMTP servers as a relay the "reply to" address is not stripped, but the relay uses ssl over port 465 instead of TLS. According to the SASL readme:

Quote:

Postfix does not deliver mail via TCP port 465 (the obsolete "wrappermode" protocol). See TLS_README for a solution that uses the "stunnel" command.

I've looked at the TLS_README and can't figure out what I need to do. how to configure this?

View 7 Replies View Related

Ubuntu :: Gmail Relay And Post Fix / Send Emails With Postfix And Gmail As The Mail Relay?

Apr 29, 2011

My issue is that i'm trying to send emails with postfix and gmail as the mail relay,i'm trying to send emails to my self by sendmail -bv user@gmail.com

In the logs, i can understand that it been delivered to the destination,
taken from: /var/log/mail.log:
Apr 30 00:05:23 moni postfix/pickup[10490]: 9C7552170C: uid=0 from=<root>
Apr 30 00:05:23 moni postfix/cleanup[10495]: 9C7552170C: message-id=<20110429210523.9C7552170C@moni.localdomain>
Apr 30 00:05:23 moni postfix/qmgr[10491]: 9C7552170C: from=<root@moni.localdomain>, size=283, nrcpt=1 (queue active)
code....

When login in my gmail account i can't see nothing under the sent / inbox / spam folder.

it's seems like the mail are been sent.. but nothing is happening.

View 1 Replies View Related

Fedora Servers :: Change Port Pop3/imap & Smtp?

Jan 12, 2010

Now, i want to change port smtp, not use 25

View 3 Replies View Related

CentOS 5 :: Postfix Mail Server Will Not Start Tried To Change Postfix Smtp Port?

Oct 4, 2010

so i set out to change the default smtp port the server uses because my ISP blocks port 25 and i need the email to work in outlook. this morning i could receive email, but not send it. so i did some research and thought that i needed to edit the master.cf file in /etc/postfix/ by commenting out this line: smtp inet n - n - - smtpd -oand replace it with587 inet n - n - - smtpd (587 being the port i want to use)somewhere along the lines postfix server stopped running and now i cannot get it to start.if i try using SSH it crashes immediately and if i restart it in simple control panel nothing happens

View 7 Replies View Related

Ubuntu Servers :: Setup An Outbound SMTP Mail Server With & Using Multiple IP Addresses

Mar 15, 2010

This is the current setup that we have: We have approx 20 clients who pay us to send out a type of e-mail called an E-Blast to their customers. We currently are using 5 Microsoft Windows Virtual Servers to do this. The problem is that those machines are starting to break down. There are times that it will take Microsoft Windows approx 9-10 hours to complete 1 job. This is way too long. We want to move away from Microsoft Windows for this particular type of job as it seems there are more customers who are wanting to use this type of advertising.

It seems that using a Linux Server "Command Line or Shell" environment would be the best way to go as there is no GUI like Windows. Since there is just text...that is something that would/should process very, very quickly.

I am in the process of setting up a new SMTP outbound mail server. This is the current software & configuration (what is installed on this new machine):

All of the customer data (Names, E-Mail Addresses, etc that these e-mails are going to) are currently loaded in a Microsoft SQL Database.

My machine that I am using is plugged into the DMZ. I have 1 ip address for the 1 network card. I have also added/bound 4 more ip addresses to that network card.

I have configured Postfix for Multiple IP Addresses.

I can, from the command line, send successful test e-mails and receive them in my personal account.

As far as I know everything is setup correctly. I can and will post requested information so that it can be verified that everything is setup correctly.

Here are a couple of my questions:

Ensure that I have my Network / Interfaces file and my Postfix's Master.cf/Main.cf files setup correctly?

How can I setup this server to be an Outbound SMTP server and get it to use all 5 of the IP Addresses to send these e-mails quickly?

What can I use to check and ensure that this server is in fact sending out emails on all 5 IP

Addresses (I heard that there is a program named "Postal" that may help in determing this).

View 3 Replies View Related

Fedora Servers :: SMTP - Configure Mobile Phone To Send Mail

Jan 14, 2011

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?

View 1 Replies View Related

Security :: Secure Webmail - SMTP Relay In DMZ?

Apr 11, 2010

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.

View 4 Replies View Related

Server :: Postfix As SMTP Relay To Exchange Help

Jul 27, 2009

I have a linux box on my DMZ with postfix on it. I have exchange on our internal LAN on 10.152.0.104.

View 6 Replies View Related

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.

View 2 Replies View Related

Software :: How To Setup Sendmail As SMTP Relay?

May 15, 2011

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.

View 1 Replies View Related

Slackware :: POSTFIX And SMTP Relay Denied

Mar 23, 2010

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.

View 4 Replies View Related







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