Migration from Postfix to FortiMail (Gateway mode)

Author
Holy
Gold Member
  • Total Posts : 171
  • Scores: 4
  • Reward points: 0
  • Joined: 2014/08/07 03:56:56
  • Status: offline
2020/03/26 09:45:41 (permalink) 6.0
0

Migration from Postfix to FortiMail (Gateway mode)

Hello Guys,
 
what would be a best practice to migrate Email Domains from other MailServers oder Email Security Gateways to FortiMail?

i do have CSV from Postfix with 100 DOmains and want to somehow do a script that will create this domains on FortiMail and assign predefined Profiles.

is that possible?

or do we have to use somehof FortiMail API?

Is there any guide for that or some recommendations?

i see that i cannot upload scripts to FortiMail

Can i use Putty > Connect to FortiMail and do Scripts directly via Putty?

would appreciate your advice

Thank you

NSE 8 
NSE 1 - 7
 
#1
abelio
Expert Member
  • Total Posts : 3657
  • Scores: 57
  • Reward points: 0
  • Joined: 2005/03/31 13:28:59
  • Location: Buenos Aires, Argentina
  • Status: offline
Re: Migration from Postfix to FortiMail (Gateway mode) 2020/03/26 19:46:44 (permalink)
0
Hi
https://cookbook.fortinet.com/migrating-email-from-other-mail-servers/index.html
 
after you have user accounts in place, you can use imap to migrate mailboxes content to fortimail.
 
Surely you use some scripting in order to accelerate the whole process
AFAIK, there's no available Rest API methods for massive number of domains.
 
If all domains could share similar policies, you could define it as associate domains in order to save some time
 
 
 

regards
--
Abel
#2
Holy
Gold Member
  • Total Posts : 171
  • Scores: 4
  • Reward points: 0
  • Joined: 2014/08/07 03:56:56
  • Status: offline
Re: Migration from Postfix to FortiMail (Gateway mode) 2020/03/27 00:21:17 (permalink)
0
Hello abelio,
 
i saw this coockbook of couse, but this is for server mode.
 
i actualy just need a way to automate the migration process to Gateway mode with massive number of domains.
 
As there is no direct possibility to upload scripts to FortiMail a Script that connects via ssh should work too right?
 
is there a possiblity to check wheter the script execution sucseeded? on the FortiGate you can check error log for example.
 
Thank you
 

NSE 8 
NSE 1 - 7
 
#3
abelio
Expert Member
  • Total Posts : 3657
  • Scores: 57
  • Reward points: 0
  • Joined: 2005/03/31 13:28:59
  • Location: Buenos Aires, Argentina
  • Status: offline
Re: Migration from Postfix to FortiMail (Gateway mode) 2020/03/27 07:34:32 (permalink)
0
Hello,
Sorry, I didn't see 'gateway mode'
 
I guess that it should be easier than server mode,  because you don't need to deal  at first instance with users stuff.
(I said 'easier than' and not 'simple') 
I agree with you a lack of support for direct scripting so useful within fortigate world.
 
In your shoes, I'll explore two (non-exclusive) approaches:
- Fortimail REST API 6.2  now includes HTTP PUT methods for /domain
- ask your local SE  to confirm that we're in the right track
 
 Please, share here with us if you can solve this problem, it's very interesting and challenging
 
 
 

Attached Image(s)


regards
--
Abel
#4
Jump to:
© 2020 APG vNext Commercial Version 5.5