Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Sendmail to Postfix

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
ikke
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Fri Jan 14, 2005 10:04 am
Location: Belgium
Contact:
Contact ikke
Website

Sendmail to Postfix

  • Quote

Post by ikke » Mon May 09, 2005 1:10 pm

Hija,

This weekend we moved our mailserver from an old Sendmail install to a brand new Postfix-based setup.
While migrating, quite a lot of mails were left in Sendmail's spool directory (yes we know, migration took too long, but for some reason we had to do it then without too much preparation). Once we started postfix, local and remote delivery and acceptance worked fine, but the spooled mails weren't processed.
Now these emails should (of course) be processed too. Just cat'ting them and piping to sendmail is unfortunately not an option, because all emails are splitted into several files (every MIME part in one file).

So the question is: how can we get these spooled mails processed?

Thanks for your input,

Ikke
Working day and night to enhance your Linux Desktop experience :)
Blog
Top
adaptr
Watchman
Watchman
User avatar
Posts: 6730
Joined: Sun Oct 06, 2002 1:28 pm
Location: Rotterdam, Netherlands

  • Quote

Post by adaptr » Mon May 09, 2005 1:16 pm

The smartest solution is to keep the old sendmail going, but on a different port.
Then set the postfix daemon as its smarthost and just let it process the queue...
The queue formats are different, so transplanting sendmail's queue to postfix is pretty sure to fail.
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Top
ikke
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Fri Jan 14, 2005 10:04 am
Location: Belgium
Contact:
Contact ikke
Website

  • Quote

Post by ikke » Mon May 09, 2005 2:10 pm

Although this is a nice solution, we are not able to do it this way. The involved is some old Debian stable based machine we want to get rid of ASAP (and get a nice up-to-date Gentoo system in place, like our other machines), and apt doesnt allow to have multiple MTA's installed.
Next to this, none of us admins is used to sendmail configuration.

Thanks,

Ikke
Working day and night to enhance your Linux Desktop experience :)
Blog
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Mon May 09, 2005 2:59 pm

Assuming your old machine still exists I'd bind sendmail to localhost only and let it try send the mails. That way you know it won't be taking in new mails. You can even put in on private space behind a NAT and let it run out its queue from there. You might need to prod sendmail a bit by using its postfix flush equivalent.

If you don't have that many emails you might want to eyeball them and see if they are just nonsense. When I've done mail server moves I usually end up deleting the last 500 or so mails in the queue because they are undeliverables, spam, etc. I'd head a few lines out of each email and see if anything looks like real email. If not, then dump it.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
ikke
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Fri Jan 14, 2005 10:04 am
Location: Belgium
Contact:
Contact ikke
Website

  • Quote

Post by ikke » Mon May 09, 2005 4:02 pm

kashani wrote:Assuming your old machine still exists I'd bind sendmail to localhost only
Its the same machine, running Postfix now.
And installing sendmail on the same machine is not possible, as mentioned before.

Thanks!
Working day and night to enhance your Linux Desktop experience :)
Blog
Top
adaptr
Watchman
Watchman
User avatar
Posts: 6730
Joined: Sun Oct 06, 2002 1:28 pm
Location: Rotterdam, Netherlands

  • Quote

Post by adaptr » Mon May 09, 2005 11:25 pm

It's hardly like you're leather-bound to apt, is it ?
Just install Postfix from source - you don't need any fancy options, just the plain MTA.
Compiling shouldn't take more than half an hour - say an hour including editing the configs.
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Top
bryon
Apprentice
Apprentice
User avatar
Posts: 163
Joined: Fri Feb 14, 2003 7:08 pm
Contact:
Contact bryon
Website

second

  • Quote

Post by bryon » Tue May 10, 2005 12:42 am

I second the above post.
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Tue May 10, 2005 2:04 am

Or assuming you don't want to mess with sources on your nice new server, I'd snag a desktop do a quick install with sendmail and rsync the spool files over. Startup sendmail and you're all set.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic