92d67369e9
Agent-Logs-Url: https://github.com/christianlouis/pop_puller_to_gmail/sessions/82f2f361-3513-44e6-991b-db1a19902772 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
4.6 KiB
4.6 KiB
Quick Start Guide
Get your InboxConverge instance running in under 10 minutes!
Prerequisites
- Docker and Docker Compose installed
- Gmail account with 2FA enabled
- POP3 email account credentials
Step-by-Step Setup
1. Clone the Repository
git clone https://github.com/christianlouis/inboxconverge.git
cd inboxconverge
2. Generate Gmail App Password
- Visit: https://myaccount.google.com/apppasswords
- Sign in to your Google Account
- Select "App passwords" under Security
- Choose "Mail" and "Other (Custom name)"
- Enter "InboxConverge" as the name
- Click "Generate"
- Copy the 16-character password (you'll need this in step 3)
3. Create Configuration File
cp .env.example .env
nano .env # or use your preferred editor
Edit the following required fields:
# Your POP3 mailbox
POP3_ACCOUNT_1_HOST=pop.yourprovider.com
POP3_ACCOUNT_1_USER=your-email@provider.com
POP3_ACCOUNT_1_PASSWORD=your-pop3-password
# Your Gmail account
SMTP_USER=youremail@gmail.com
SMTP_PASSWORD=xxxx-xxxx-xxxx-xxxx # The 16-char app password from step 2
GMAIL_DESTINATION=youremail@gmail.com
Important: Keep the same email for SMTP_USER and GMAIL_DESTINATION
4. Start the Container
docker-compose up -d
5. Verify It's Working
Check the logs:
docker-compose logs -f
You should see:
inboxconverge | INFO - InboxConverge starting...
inboxconverge | INFO - Loaded POP3 account: ...
inboxconverge | INFO - Configuration validated successfully
inboxconverge | INFO - Starting email processing cycle
6. Test the Forwarder
- Send a test email to your POP3 account
- Wait up to 5 minutes (or check the logs)
- Check your Gmail inbox
- You should see:
[Fwd from your-email@provider.com] Test Subject
Common Issues
"Username and Password not accepted"
Problem: Gmail rejects login
Fix:
- Make sure 2FA is enabled on your Google account
- Generate a new App Password (don't use your regular Gmail password)
- Copy it exactly without spaces into
SMTP_PASSWORD
"No address associated with hostname"
Problem: Can't connect to POP3 server
Fix:
- Verify
POP3_ACCOUNT_1_HOSTis correct - Check if POP3 is enabled in your email provider's settings
- Try port 110 with
POP3_ACCOUNT_1_USE_SSL=falseif port 995 doesn't work
Container stops immediately
Problem: Container exits right after starting
Fix:
# Check logs for errors
docker-compose logs
# Common fixes:
# 1. Check .env file exists and has correct values
# 2. Verify all required fields are set
# 3. Check Docker has internet access
Adding More POP3 Accounts
To forward from multiple email accounts:
# Edit .env and add more accounts:
POP3_ACCOUNT_2_HOST=pop.another.com
POP3_ACCOUNT_2_USER=user@another.com
POP3_ACCOUNT_2_PASSWORD=another-password
POP3_ACCOUNT_3_HOST=pop.yetanother.com
POP3_ACCOUNT_3_USER=user@yetanother.com
POP3_ACCOUNT_3_PASSWORD=yetanother-password
# Restart the container
docker-compose restart
Managing the Service
# View logs
docker-compose logs -f
# Stop the service
docker-compose down
# Restart after config changes
docker-compose restart
# Rebuild after code updates
docker-compose up -d --build
Optional: Error Notifications
To receive email alerts when errors occur:
- Sign up at https://postmarkapp.com (free tier available)
- Get your Server API Token
- Add to
.env:
POSTMARK_API_TOKEN=your-token-here
POSTMARK_FROM_EMAIL=errors@yourdomain.com
POSTMARK_TO_EMAIL=admin@yourdomain.com
- Restart:
docker-compose restart
Customizing Settings
All settings in .env can be adjusted:
# Check every 10 minutes instead of 5
CHECK_INTERVAL_MINUTES=10
# Process up to 100 emails per run
MAX_EMAILS_PER_RUN=100
# Send up to 20 emails per minute
THROTTLE_EMAILS_PER_MINUTE=20
# Enable debug logging
LOG_LEVEL=DEBUG
Restart after changes: docker-compose restart
Next Steps
- Read the full README.md for detailed documentation
- Review MVP.md for current features
- Check ROADMAP.md for planned features
Need Help?
- Open an issue: https://github.com/christianlouis/inboxconverge/issues
- Check existing discussions
- Review troubleshooting section in README.md
Success! 🎉
Your InboxConverge instance is now running. Emails will be automatically forwarded every 5 minutes (or your configured interval).
Remember:
- The forwarder deletes emails from POP3 after successful forwarding
- Check Gmail spam folder if emails don't appear in inbox
- Monitor logs occasionally to ensure everything is working