You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用JavaMail通过1und1发送邮件时出现550错误

Troubleshooting 1und1 SMTP 550 Error When Sending Emails from Your Custom Tool

Hey Freddy, I’ve run into this exact 550 error with 1und1’s SMTP before—switching from Gmail (which is pretty forgiving for testing) to a production host like 1und1 often trips up developers over their strict sending policies. Let’s walk through the most likely fixes:

1. Ensure Your Sender Email Matches the SMTP Authentication Account

1und1 enforces a strict "sender match" rule: the email address you use to authenticate with SMTP must be identical to the From address in your outgoing email. Gmail lets you spoof senders (with proper setup), but 1und1 blocks this to prevent spoofing.

For example, if you’re logging into SMTP with admin@yourdomain.de, your email’s From header can’t be newsletter@yourdomain.de unless you’ve specifically configured alias support in your 1und1 account.

Quick code check (using Python as an example):

# Correct setup: Sender matches SMTP login
smtp_login = "your-1und1-email@yourdomain.de"
message["From"] = smtp_login  # Don't change this to a different address!

2. Verify SPF/DKIM DNS Records Are Configured

When you send via 1und1’s web client, the mail uses their trusted servers, so SPF/DKIM isn’t as critical. But when sending via your custom tool, your domain’s DNS needs to explicitly authorize 1und1’s SMTP servers to send on its behalf—otherwise, 1und1 (or recipient servers) will flag the email as suspicious and return a 550 error.

  • SPF Record: Add or update your domain’s TXT record to include include:mx.kundenserver.de (1und1’s official SPF identifier). A valid SPF record might look like:
    v=spf1 include:mx.kundenserver.de ~all
    
  • DKIM Record: Log into your 1und1 control panel, navigate to your email settings, and generate a DKIM key. Add this as a TXT record to your domain’s DNS. Most 1und1 plans have a one-click setup for this, so double-check you didn’t skip it.

3. Rule Out Anti-Spam Triggers in Your Email Content

1und1’s spam filters are more aggressive than Gmail’s for third-party SMTP senders. Try sending a plain-text, minimal test email first (no HTML, no links, no marketing buzzwords). If that works, your original HTML content is likely triggering their filters.

Common red flags:

  • Overuse of capitalized words or exclamation points in the subject line (e.g., "ACT NOW!!!")
  • Embedded images hosted on untrusted domains
  • Links to external sites that haven’t been verified
  • Unsubscribe links missing from marketing emails (1und1 requires this for bulk sends)

4. Confirm SMTP Port & Encryption Settings

Even if you can connect, using the wrong port/encryption combo can lead to silent failures or 550 errors. 1und1’s official SMTP settings are:

  • Server: smtp.1und1.de
  • Port 465: Use SSL encryption (most reliable for production)
  • Port 587: Use STARTTLS encryption (make sure your code switches to TLS after connecting)

Avoid using port 25—it’s often blocked by ISPs and 1und1’s own servers for third-party sends.

5. Check for 1und1 Account Restrictions

Some 1und1 plans limit the number of SMTP sends per day, or require you to explicitly enable SMTP access for your account. Even if the web client works, SMTP might be disabled by default.

Log into your 1und1 control panel:

  • Go to Email > Mail Settings
  • Look for an option like "Allow SMTP access" or "Enable external mail clients"
  • Ensure your account hasn’t hit a sending limit (check the "Usage" tab)

Start with the simplest fixes first (sender match, test plain-text email) and work your way up—this should get your tool sending emails through 1und1 without the 550 error.

内容的提问来源于stack exchange,提问作者Freddy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 09:03:52