1

Topic: Tracking origin of an email sent via Gmail

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: iRedAdmin-Pro     v1.4.0 (MySQL)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian
- Related log if you're reporting an issue:
====

how I can know the source IP address of an email sent to a server iredmail from a gmail account?

Thanks.

2

Re: Tracking origin of an email sent via Gmail

Postfix will log it in log file /var/log/mail.log.

3

Re: Tracking origin of an email sent via Gmail

Mar  4 20:44:38 mail postfix/qmgr[2247]: 29597152A37A: from=<XXXXXXX@gmail.com>, size=12073, nrcpt=1 (queue active)
Mar  4 20:44:38 mail amavis[21951]: (21951-13) Passed CLEAN, LOCAL [209.85.216.176] [209.85.216.176] <XXXXX@XXXXX> -> <XXXXXXX@XXXXXXX>, Message-ID: <CABoSgs4-DnSeHzMLEYw3KYWyuyhVNT+hDCoFEHmaQDjvb_YwEg@mail.gmail.com>, mail_id: hajVHZWRIR4C, Hits: -108.939, size: 11535, queued_as: 29597152A37A, dkim_id=@gmail.com, 184 ms
Mar  4 20:44:38 mail postfix/qmgr[2247]: 3AC02152A37B: from=<XXXXX@gmail.com>, size=12075, nrcpt=1 (queue active)
Mar  4 20:44:38 mail amavis[21204]: (21204-17) Passed CLEAN, LOCAL [209.85.216.176] [209.85.216.176] <XXXXXX@gmail.com> -> <XXXXX@XXXXXX>, Message-ID: <CABoSgs4-DnSeHzMLEYw3KYWyuyhVNT+hDCoFEHmaQDjvb_YwEg@mail.gmail.com>, mail_id: 7RO7vFYpDTk3, Hits: -108.939, size: 11535, queued_as: 3AC02152A37B, dkim_id=@gmail.com, 134 ms
Mar  4 20:44:38 mail postfix/qmgr[2247]: 52ACF152A37D: from=<XXXXXXXXX@gmail.com>, size=12069, nrcpt=1 (queue active)
Mar  4 20:44:38 mail amavis[21951]: (21951-14) Passed CLEAN, LOCAL [209.85.216.176] [209.85.216.176] <XXXXXXXX@gmail.com> -> <XXXXXXX>, Message-ID: <CABoSgs4-DnSeHzMLEYw3KYWyuyhVNT+hDCoFEHmaQDjvb_YwEg@mail.gmail.com>, mail_id: MYF2L9Qlo5HW, Hits: -108.939, size: 11535, queued_as: 52ACF152A37D, dkim_id=@gmail.com, 219 ms
Mar  4 20:44:38 mail postfix/qmgr[2247]: 86E0F152A37E: from=<XXXXXXXX@gmail.com>, size=12067, nrcpt=1 (queue active)
Mar  4 20:44:38 mail amavis[21204]: (21204-18) Passed CLEAN, LOCAL [209.85.216.176] [209.85.216.176] <XXXXXXX@gmail.com> -> <XXXXX@XXXXXX>, Message-ID: <CABoSgs4-DnSeHzMLEYw3KYWyuyhVNT+hDCoFEHmaQDjvb_YwEg@mail.gmail.com>, mail_id: zwipbfrn-l51, Hits: -108.939, size: 11535, queued_as: 86E0F152A37E, dkim_id=@gmail.com, 288 ms
Mar  4 20:44:41 mail postfix/smtp[22585]: 3EE91152A378: to=<XXXXXXXX@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.66.26]:25, delay=4.3, delays=0.01/0.01/1.2/3.1, dsn=2.0.0, status=sent (250 2.0.0 OK 1362451508 fc8si4070429wib.16 - gsmtp)
Mar  4 20:44:50 mail postfix/smtp[22598]: 08DDC152A37C: to=<XXXXXX@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.66.26]:25, delay=13, delays=0.06/0.01/11/2.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1362451518 o4si2256964wix.116 - gsmtp)