Recommended Posts

I'm running exchange 2010 at home to learn more about AD and IT setups. I've set up an Ubuntu VM that sits in front of the exchange server, running Postfix/Spamassassin/Pyzor/Razor/DCC/CLAMAV/Mailscanner to weed out spam and viruses. While the setup works great at reducing nearly 100% of all spam, theres an issue with the vm sending messages to myself

post-26332-0-47766900-1353004471.png

I've set up the receive connector in exchange to only allow access from the VM for SMTP, so that nothing else can directly access exchange. I have no issues receiving email from anywhere on the internet, but if I try to send email from the ubuntu vm (logs, etc), Exchange seems to bounce or reject the message, with the following showing in the logs:

  Quote
<myemail@mydomain>: host 192.168.0.3[192.168.0.3] said: 501 5.1.7 Invalid address(in reply to MAIL FROM command)

If I look in the root mail account on ubuntu, i see the following:


Final-Recipient: rfc822; <myemail@mydomain.com>
Action: failed
Status: 5.1.7
Remote-MTA: dns; 192.168.0.3
Diagnostic-Code: smtp; 501 5.1.7 Invalid Address
.
.
.
.
To: myemail@mydomain.com
From: root
Subject: Logwatch for ubuntu (Linux)
[/CODE]

I already enabled anonymous users to access the receiver connector, so why is exchange rejecting mail from the root user?

why would exchange accept email from "root" That is not a valid email address, root@something.tld would be valid email address.

To: myemail@mydomain.com

From: root

Subject: Logwatch for ubuntu (Linux)"

  On 15/11/2012 at 20:46, BudMan said:

why would exchange accept email from "root" That is not a valid email address, root@something.tld would be valid email address.

To: myemail@mydomain.com

From: root

Subject: Logwatch for ubuntu (Linux)"

that's what ubuntu is sending as. Shouldn't the "anonymous" access allow any sending party to access the SMTP server? I thought about that, since "root" is just a account name, and not a proper address, but I don't know how to change it.

Organization -> Hub Transport -> Send Connectors:

post-26332-0-58909200-1353018529.png

post-26332-0-63993800-1353018531.png

post-26332-0-67988700-1353018533.png

post-26332-0-65627800-1353018535.png

Server Configuration -> Hub Transport -> Receive Connectors:

post-26332-0-21955000-1353018537.png

post-26332-0-32719200-1353018539.png

post-26332-0-32627000-1353018541.png

post-26332-0-22416500-1353018543.png

I would agree with budman that the email address "root" is the problem. You would have to change it with the format of root@something.com. Budmans instructions should do that for you. The receive connector should work for you. The send connector is fine. in exchange 2007 they incorporated a block from unauthenticated sources to send mail outside of the domain.

In exchange powershell (there is no gui check box or setting you can make to enable this):

Get-ReceiveConnector "modelxposure.com" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"

Looking at the initial diagram, your Linux box is 192.168.0.2, but on the receive connector on exchange you don't have that IP listed. Also for an internal machine to send to exchange direct (i.e. not through outlook so not AD secured) then you have to enable 'externally secured (For example with IPsec)' so that the connection will be permitted, as your box sending an email is acting as a client in this scenario and not a relay server.

See screenshot:

post-325730-0-58598200-1353071751.jpg

Sorry ignore me, this is for relaying through the server, doh!

and this being in the rejection message confirms for me the format of the from address is to blame:

<myemail@mydomain>: host 192.168.0.3[192.168.0.3] said: 501 5.1.7 Invalid address(in reply to MAIL FROM command)

This topic is now closed to further replies.
  • Posts

    • Looks interesting, I love the art style. How many people are working on the game?
    • AMD releases driver 25.8.1 with support for new RX 9060, new games, and more by Taras Buria AMD has a new driver for customers with Radeon graphics cards. Version 25.8.1 WHQL is now available with optimizations for more games and support for the new RX 9060 non-XT graphics card. The update also has plenty of fixed issues and bugs. Here are the update highlights: New Game Support New Game Support for FSR 4 Mafia: The Old Country Mecha BREAK WUCHANG: Fallen Feathers Valorant (Unreal Engine 5 release) Battlefield 6 Open Beta The Alters F1 25 Cyberpunk 2077 WUCHANG: Fallen Feathers Mafia: The Old Country Arena Breakout: Infinite Game of Thrones: Kingsroad Wreckfest 2 Lies of P Fixed issues and bugs include the following: Stutter and lower than expected performance may be observed while playing 4K resolution YouTube videos in Chrome. Intermittent application crash or driver timeout may be observed while playing Monster Hunter Wilds with Radeon Anti-Lag and Instant Replay enabled. Intermittent application crash may be observed while playing Battlefield 2042. Intermittent application crash may be observed while playing Dragon Age: The Veilguard on Radeon RX 9000 series graphics products. Stutter improved while playing Call of Duty: Warzone Season 03 ‘Verdansk’ map on some AMD Graphics Products NOTE: Stutter has been reduced with 25.8.1, and AMD is working with the developer toward a full solution. Texture issues may be observed while using Oculus Rift S on RX 5000 and 6000 series graphics products. And here is the list of known bugs: Corruption may appear while playing Mafia: The Old Country on Radeon RX 6600 series graphics products. Intermittent application crash may be observed while playing The Last of Us Part II on Radeon RX 7900 series graphics products. Intermittent application crash may be observed while playing Call of Duty: Black Ops 6 on Radeon RX 9000 series graphics products. Intermittent application crash or driver timeout may be observed while playing Wuchang: Fallen Feathers with FSR 4 enabled on Radeon™ RX 9000 series graphics products. Intermittent application crash may be observed while playing FBC: Firebreak on some AMD Ryzen processors such as the Ryzen AI 300 series and the Ryzen 7000 series. Intermittent application crash may be observed while playing NBA 2K26 in MyCareer mode on Radeon RX 9070 series graphics products. AMD Radeon Software 25.8.1 is available on 64-bit Windows 10 and 11 systems with supported Radeon graphics cards. You can download it from the official support website. Full release details are available on the same page.
    • Fair shout! But the best way to get this on our news side would be to have Pulasti @LoneWolfSLhave a crack at Early Access when its in a playable state  
    • Interesting. Seems to promote or invite more people to use whatsapp.
    • AI is going to destroy online as well as offline worlds.
  • Recent Achievements

    • First Post
      Aidan Helfrich earned a badge
      First Post
    • Collaborator
      bullgod69 earned a badge
      Collaborator
    • Enthusiast
      Ed B went up a rank
      Enthusiast
    • Reacting Well
      Xinotema earned a badge
      Reacting Well
    • Dedicated
      Edward266 earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      763
    2. 2
      ATLien_0
      187
    3. 3
      +FloatingFatMan
      151
    4. 4
      Xenon
      118
    5. 5
      wakjak
      113
  • Tell a friend

    Love Neowin? Tell a friend!